From a94f21e88804bfd8a8b03094ebc0d1afe4e69e1a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 13 Sep 2019 20:10:00 -0600 Subject: [PATCH] Fix use of directories in scripts/remotes --- scripts/remotes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remotes.sh b/scripts/remotes.sh index b57b25c..5655deb 100755 --- a/scripts/remotes.sh +++ b/scripts/remotes.sh @@ -10,7 +10,7 @@ set -e function git_remote { echo -e "\x1B[1m$1\x1B[0m" - cd "$1" + pushd "$1" > /dev/null if git remote | grep "^$2\$" then git remote set-url "$2" "$3" @@ -18,7 +18,7 @@ function git_remote { git remote add "$2" "$3" fi git fetch "$2" - cd .. + popd > /dev/null } for remote in "${REMOTES[@]}"