entrypoint.sh 207 B

1234567891011
  1. #!/bin/sh
  2. OLDIFS=$IFS
  3. IFS='|'
  4. for each in $FILES; do
  5. aws s3 cp s3://$BUCKET/$each /opt/$each
  6. if [ $BASENAME -eq 1 ]; then
  7. mv /opt/$each /opt/$(basename $each)
  8. fi
  9. done
  10. IFS=$OLDIFS
  11. tail -f /dev/null