mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
fix(installer): exit install directory on setup (#10804)
This commit is contained in:
parent
3f214329d6
commit
9e967b4ecc
1 changed files with 6 additions and 1 deletions
|
@ -285,10 +285,15 @@ setup_ohmyzsh() {
|
||||||
&& git remote add origin "$REMOTE" \
|
&& git remote add origin "$REMOTE" \
|
||||||
&& git fetch --depth=1 origin \
|
&& git fetch --depth=1 origin \
|
||||||
&& git checkout -b "$BRANCH" "origin/$BRANCH" || {
|
&& git checkout -b "$BRANCH" "origin/$BRANCH" || {
|
||||||
[ ! -d "$ZSH" ] || rm -rf "$ZSH" 2>/dev/null
|
[ ! -d "$ZSH" ] || {
|
||||||
|
cd -
|
||||||
|
rm -rf "$ZSH" 2>/dev/null
|
||||||
|
}
|
||||||
fmt_error "git clone of oh-my-zsh repo failed"
|
fmt_error "git clone of oh-my-zsh repo failed"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
# Exit installation directory
|
||||||
|
cd -
|
||||||
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue