fix: clean up in setup-git script
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Script that sets up git in dotfiles directory.
|
# Script that sets up git remote in dotfiles directory.
|
||||||
#
|
#
|
||||||
# Optional arguments:
|
# Optional arguments:
|
||||||
# GITHUB_AUTHOR: GitHub author of repository
|
# GITHUB_AUTHOR: GitHub author of repository
|
||||||
@@ -39,6 +39,8 @@ git -C $dir reset --hard FETCH_HEAD
|
|||||||
git -C $dir branch --set-upstream-to=origin/$branch $branch
|
git -C $dir branch --set-upstream-to=origin/$branch $branch
|
||||||
git -C $dir pull --rebase
|
git -C $dir pull --rebase
|
||||||
|
|
||||||
|
unset dir author repository branch
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
echo ">>> git logs"
|
echo ">>> git logs"
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|||||||
Reference in New Issue
Block a user