尝试在脚本中自动执行git clone操作

时间:2017-01-18 07:09:50

标签: bash shell unix dialog

我正在尝试通过创建对话框shell脚本来自动执行git clone进程。当前我有bash shell脚本,它工作正常

cd /usr/src/;
       if [ ! -d "example" ]; then
           git clone https://example.git
       fi
     cd example;
     docker build -t "example:latest" .;
       cd /usr/src/;
      docker run -d -t --memory="512m" -v /etc/localtime:/etc/localtime:ro --env="NODE_CONFIG_DIR=/usr/local/src/example/config" --env="HOST_TOKEN=$HOST

但当我将其插入对话框shell脚本时,它将无法正常工作 如何使用dialog -gauge

在对话框shell中执行相同的过程

0 个答案:

没有答案