Skip to content

Commit

Permalink
Wrap the commands in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Feb 17, 2021
1 parent 4dc1de8 commit cac8ee0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/exists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the_command="aws ${S3_PROFILE} ${ENDPOINT_APPEND} s3api head-object --bucket ${S
echo $the_command

# Verify file existence.
sh -c $the_command
sh -c "$the_command"

# XXX: we are just checking the error code, but should check the result for a 404, and raise error in other cases
if [ $? == 0 ]
Expand Down
2 changes: 1 addition & 1 deletion commands/ls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ the_command="aws ${S3_PROFILE} ${ENDPOINT_APPEND} s3 ls s3://${S3_BUCKET}/${FILE
echo $the_command

# Verify file existence.
output=$(sh -c $the_command)
output=$(sh -c "$the_command")

echo $output

Expand Down
2 changes: 1 addition & 1 deletion commands/rm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ the_command="aws ${S3_PROFILE} ${ENDPOINT_APPEND} s3 rm s3://${S3_BUCKET}/${FILE
echo $the_command

# Verify file existence.
output=$(sh -c $the_command)
output=$(sh -c "$the_command")

echo $output

Expand Down
2 changes: 1 addition & 1 deletion commands/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ the_command="aws ${S3_PROFILE} ${ENDPOINT_APPEND} s3 sync ${SOURCE_DIR:-.} s3://
echo $the_command

# Sync path.
sh -c $the_command
sh -c "$the_command"

0 comments on commit cac8ee0

Please sign in to comment.