Skip to content

Commit

Permalink
Fix zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent 8b53f90 commit 99e97e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,14 @@ is_yn() {
answer=''

while ! is_yn "$answer"; do
if [ "$current_shell" == "zsh" ]; then
read "answer?Do you want to continue? (y/n) "
else
case $current_shell in
"bash" | "rbash")
read -p "Do you want to continue? (y/n) " answer
fi
;;
"zsh")
read "answer?Do you want to continue? (y/n) "
;;
esac

echo ""
case "$answer" in
Expand Down
11 changes: 7 additions & 4 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,14 @@ is_yn() {
answer=''

while ! is_yn "$answer"; do
if [ "$current_shell" == "zsh" ]; then
read "answer?Do you want to continue? (y/n) "
else
case $current_shell in
"bash" | "rbash")
read -p "Do you want to continue? (y/n) " answer
fi
;;
"zsh")
read "answer?Do you want to continue? (y/n) "
;;
esac

echo ""
case "$answer" in
Expand Down

0 comments on commit 99e97e1

Please sign in to comment.