Renamed variable to be more descriptive.
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
# fetch-all.sh ~/project [~/second-project]
|
# fetch-all.sh ~/project [~/second-project]
|
||||||
|
|
||||||
function process_git_fetch () {
|
function process_git_fetch () {
|
||||||
BOB=`pwd`
|
STARTED_IN=`pwd`
|
||||||
for location in "$@"; do
|
for location in "$@"; do
|
||||||
if [ -d "$location/.git" ]; then
|
if [ -d "$location/.git" ]; then
|
||||||
echo -n "----- git fetch $location "
|
echo -n "----- git fetch $location "
|
||||||
@@ -13,7 +13,7 @@ function process_git_fetch () {
|
|||||||
git fetch --prune
|
git fetch --prune
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd "$BOB"
|
cd "$STARTED_IN"
|
||||||
}
|
}
|
||||||
|
|
||||||
process_git_fetch "$@"
|
process_git_fetch "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user