Browse Source

Remove unknown function

Bob Mottram 8 years ago
parent
commit
b4a115a896
1 changed files with 7 additions and 11 deletions
  1. 7
    11
      src/freedombone-utils-git

+ 7
- 11
src/freedombone-utils-git View File

33
     destination_dir="$2"
33
     destination_dir="$2"
34
 
34
 
35
     if [[ "$repo_url" == 'ssh:'* ]]; then
35
     if [[ "$repo_url" == 'ssh:'* ]]; then
36
-        retval=$(get_friends_servers)
37
-        if [[ $retval == "0" ]]; then
38
-            if [ "${FRIENDS_MIRRORS_SERVER}" ]; then
39
-                if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then
40
-                    if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then
41
-                        if [ ${#FRIENDS_MIRRORS_PASSWORD} -gt 2 ]; then
42
-                            echo "sshpass -p \"$FRIENDS_MIRRORS_PASSWORD\" git clone $repo_url $destination_dir"
43
-                            sshpass -p "$FRIENDS_MIRRORS_PASSWORD" git clone "$repo_url" "$destination_dir"
44
-                            return
45
-                        fi
36
+        if [ "${FRIENDS_MIRRORS_SERVER}" ]; then
37
+            if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then
38
+                if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then
39
+                    if [ ${#FRIENDS_MIRRORS_PASSWORD} -gt 2 ]; then
40
+                        echo "sshpass -p \"$FRIENDS_MIRRORS_PASSWORD\" git clone $repo_url $destination_dir"
41
+                        sshpass -p "$FRIENDS_MIRRORS_PASSWORD" git clone "$repo_url" "$destination_dir"
42
+                        return
46
                     fi
43
                     fi
47
                 fi
44
                 fi
48
             fi
45
             fi
60
     git stash
57
     git stash
61
     git remote set-url origin $1
58
     git remote set-url origin $1
62
     git checkout master
59
     git checkout master
63
-    retval=$(get_friends_servers)
64
     if [ "${FRIENDS_MIRRORS_SERVER}" ]; then
60
     if [ "${FRIENDS_MIRRORS_SERVER}" ]; then
65
         if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then
61
         if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then
66
             if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then
62
             if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then