瀏覽代碼

fix misnamed basename flag in script

tarfeef101 3 年之前
父節點
當前提交
112b253e88
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      entrypoint.sh

+ 1 - 1
entrypoint.sh

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