Remove unknown function

This commit is contained in:
Bob Mottram 2016-10-13 23:39:23 +01:00
parent a3f7ab9fae
commit b4a115a896
1 changed files with 7 additions and 11 deletions

View File

@ -33,8 +33,6 @@ function git_clone {
destination_dir="$2" destination_dir="$2"
if [[ "$repo_url" == 'ssh:'* ]]; then if [[ "$repo_url" == 'ssh:'* ]]; then
retval=$(get_friends_servers)
if [[ $retval == "0" ]]; then
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
@ -47,7 +45,6 @@ function git_clone {
fi fi
fi fi
fi fi
fi
echo "git clone $repo_url $destination_dir" echo "git clone $repo_url $destination_dir"
git clone "$repo_url" "$destination_dir" git clone "$repo_url" "$destination_dir"
} }
@ -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