|
@@ -3,7 +3,7 @@ OLDIFS=$IFS
|
|
IFS='|'
|
|
IFS='|'
|
|
for each in $FILES; do
|
|
for each in $FILES; do
|
|
aws s3 cp s3://$BUCKET/$each /opt/$each
|
|
aws s3 cp s3://$BUCKET/$each /opt/$each
|
|
- if [ $FLAG -eq 1 ]; then
|
|
|
|
|
|
+ if [ $BASENAME -eq 1 ]; then
|
|
mv /opt/$each /opt/$(basename $each)
|
|
mv /opt/$each /opt/$(basename $each)
|
|
fi
|
|
fi
|
|
done
|
|
done
|