浏览代码

Add entrypoint

gabriel 6 年之前
父节点
当前提交
cb437597ae
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      execute.sh

+ 6 - 1
execute.sh

@@ -6,5 +6,10 @@ then
 	sleep 360
     echo "SALIO"
 else
-    sh /opt/script.sh
+    if [ "$1" == "bash" ];
+    then
+        bash
+    else
+        sh /opt/script.sh
+    fi
 fi