Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Removed string literals from source variable
Browse files Browse the repository at this point in the history
  • Loading branch information
krikkrob committed Nov 21, 2023
1 parent bb37e86 commit 8787919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ while IFS= read -r source; do
if [ -n "$source" ]; then
if [ "$COMMAND" == "cp" ] || [ "$COMMAND" == "mv" ] || [ "$COMMAND" == "sync" ]; then
if [ -n "$INPUT_FLAGS" ]; then
cmd="aws s3 $COMMAND \"$source\" $INPUT_DESTINATION $INPUT_FLAGS"
cmd="aws s3 $COMMAND $source $INPUT_DESTINATION $INPUT_FLAGS"
echo "Executing command: $cmd"
$cmd
else
cmd="aws s3 $COMMAND \"$source\" $INPUT_DESTINATION"
cmd="aws s3 $COMMAND $source $INPUT_DESTINATION"
echo "Executing command: $cmd"
$cmd
fi
else
cmd="aws s3 $COMMAND \"$source\" $INPUT_FLAGS"
cmd="aws s3 $COMMAND $source $INPUT_FLAGS"
echo "Executing command: $cmd"
$cmd
fi
Expand Down

0 comments on commit 8787919

Please sign in to comment.