Skip to content

Commit 03d2cf4

Browse files
command in array, avoid relying on word splitting
1 parent e325cac commit 03d2cf4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/actions/authenticateOrg/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ runs:
3333
3434
echo ${{ inputs.auth-URL }} > ./SFDX_URL.txt
3535
36-
command="sf org login sfdx-url --sfdx-url-file ./SFDX_URL.txt --alias ${{ inputs.alias }}"
36+
command=(sf org login sfdx-url --sfdx-url-file ./SFDX_URL.txt --alias ${{ inputs.alias }})
3737
3838
if [ ${{ inputs.setDefaultUsername }} ];
3939
then
40-
command+=" --set-default"
40+
command+=(--set-default)
4141
fi
4242
4343
if [ ${{ inputs.setDefaultDevhubUsername }} ];
4444
then
45-
command+=" --set-default-dev-hub"
45+
command+=(--set-default-dev-hub)
4646
fi
4747
48-
command+=" --json > loginResult.json"
48+
command+=(--json)
4949
50-
eval $command
50+
"${command[@]}" > loginResult.json
5151
5252
if [ "$(jq .status loginResult.json)" == 1 ];
5353
then

0 commit comments

Comments
 (0)