Skip to content

Commit

Permalink
feat: add default values for input
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Aug 25, 2023
1 parent ed58877 commit 2c7d557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ root_path=$(pwd)

# Define a function to handle errors
function handle_error {
echo_red "安装失败,是否重试?"
echo_red "安装失败,是否重试? [y/n] "
read -rp "Installation failed, do you want to retry? [y/n] " choice
choice=${choice:-y}
if [[ $choice == [yY] ]]; then
# Retry the command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/wy-luke/StableDiffusion-Installer-For-Mac/main/sd-installer.sh)"
Expand Down

0 comments on commit 2c7d557

Please sign in to comment.