Skip to content
Snippets Groups Projects
Commit b4a115a8 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove unknown function

parent a3f7ab9f
No related branches found
No related tags found
No related merge requests found
...@@ -33,16 +33,13 @@ function git_clone { ...@@ -33,16 +33,13 @@ function git_clone {
destination_dir="$2" destination_dir="$2"
if [[ "$repo_url" == 'ssh:'* ]]; then if [[ "$repo_url" == 'ssh:'* ]]; then
retval=$(get_friends_servers) if [ "${FRIENDS_MIRRORS_SERVER}" ]; then
if [[ $retval == "0" ]]; then if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then
if [ "${FRIENDS_MIRRORS_SERVER}" ]; then if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then
if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then if [ ${#FRIENDS_MIRRORS_PASSWORD} -gt 2 ]; then
if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then echo "sshpass -p \"$FRIENDS_MIRRORS_PASSWORD\" git clone $repo_url $destination_dir"
if [ ${#FRIENDS_MIRRORS_PASSWORD} -gt 2 ]; then sshpass -p "$FRIENDS_MIRRORS_PASSWORD" git clone "$repo_url" "$destination_dir"
echo "sshpass -p \"$FRIENDS_MIRRORS_PASSWORD\" git clone $repo_url $destination_dir" return
sshpass -p "$FRIENDS_MIRRORS_PASSWORD" git clone "$repo_url" "$destination_dir"
return
fi
fi fi
fi fi
fi fi
...@@ -60,7 +57,6 @@ function git_pull { ...@@ -60,7 +57,6 @@ function git_pull {
git stash git stash
git remote set-url origin $1 git remote set-url origin $1
git checkout master git checkout master
retval=$(get_friends_servers)
if [ "${FRIENDS_MIRRORS_SERVER}" ]; then if [ "${FRIENDS_MIRRORS_SERVER}" ]; then
if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then if [ ${#FRIENDS_MIRRORS_SERVER} -gt 2 ]; then
if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then if [ "$FRIENDS_MIRRORS_PASSWORD" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment