Procházet zdrojové kódy

Remove directory after install failure

Bob Mottram před 8 roky
rodič
revize
2e2884e53a
No account linked to committer's email
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5
    1
      src/freedombone

+ 5
- 1
src/freedombone Zobrazit soubor

@@ -5343,7 +5343,7 @@ function install_monkeysphere {
5343 5343
         return
5344 5344
     fi
5345 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 5348
     echo 'install_monkeysphere' >> $COMPLETION_FILE
5349 5349
 }
@@ -6336,6 +6336,10 @@ function install_gogs {
6336 6336
 
6337 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 6343
     # add a gogs user account
6340 6344
     adduser --disabled-login --gecos 'Gogs' git
6341 6345