Преглед изворни кода

Remove directory after install failure

Bob Mottram пре 8 година
родитељ
комит
2e2884e53a
No account linked to committer's email
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5
    1
      src/freedombone

+ 5
- 1
src/freedombone Прегледај датотеку

5343
         return
5343
         return
5344
     fi
5344
     fi
5345
     apt-get -y install monkeysphere msva-perl
5345
     apt-get -y install monkeysphere msva-perl
5346
-	su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
5346
+    su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
5347
 
5347
 
5348
     echo 'install_monkeysphere' >> $COMPLETION_FILE
5348
     echo 'install_monkeysphere' >> $COMPLETION_FILE
5349
 }
5349
 }
6336
 
6336
 
6337
     # http://gogs.io/docs/installation/install_from_source.md
6337
     # http://gogs.io/docs/installation/install_from_source.md
6338
 
6338
 
6339
+    if [ -d $GOPATH/src/github.com/gogits ]; then
6340
+        rm -rf $GOPATH/src/github.com/gogits
6341
+    fi
6342
+
6339
     # add a gogs user account
6343
     # add a gogs user account
6340
     adduser --disabled-login --gecos 'Gogs' git
6344
     adduser --disabled-login --gecos 'Gogs' git
6341
 
6345