Commits

takanao ENDOH  committed 2123a5a

Fix does not work when already exists`goenv` directory

  • Participants
  • Parent commits a20e32e

Comments (0)

Files changed (1)

File shellscripts/initial-install.sh

 fi
 
 echo "[goenv] cloning goenv from GitHub"
+if [ -d goenv ]; then
+  if ! eval "rm -rf goenv"; then
+    echo "[goenv] please confirm directory permission for /tmp/goenv"
+    exit 0
+  fi
+fi
 if git clone https://bitbucket.org/ymotongpoo/goenv.git; then
   cd goenv
   if ! go build -o goenv; then