Skip to content

Commit

Permalink
fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud authored Nov 21, 2019
1 parent e85b648 commit efc811e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BUCKET=$1 # first argument is s3 bucket
shift

for ARG in "$@"; do
REL=$(echo "$ARG" | gawk -F '[/][.][/]' '{print $2}')
REL=$(echo "$ARG" | gawk -F '(/\\./)' '{print $2}')
# echo "s3cmd put $ARG s3://"$BUCKET"/"$REL""
s3cmd put "$ARG" s3://"$BUCKET"/"$REL"
EXIT_CODE=$?
Expand Down

0 comments on commit efc811e

Please sign in to comment.