tools/upgrade: Return to the original working directory after upgrading

Co-authored-by: Rex Roof <github@rexroof.com>
This commit is contained in:
Koichi Murase
2022-01-06 00:16:32 +09:00
parent 56f692daf0
commit 463b9c3b8c

View File

@ -22,9 +22,8 @@ else
fi fi
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Bash" printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Bash"
cd "$OSH"
if git pull --rebase --stat origin master if git -C "$OSH" pull --rebase --stat origin master; then
then
printf '%s' "$GREEN" printf '%s' "$GREEN"
printf '%s\n' ' __ __ __ ' printf '%s\n' ' __ __ __ '
printf '%s\n' ' ____ / /_ ____ ___ __ __ / /_ ____ ______/ /_ ' printf '%s\n' ' ____ / /_ ____ ___ __ __ / /_ ____ ______/ /_ '