mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-07 05:43:55 +08:00
fix bootstrap script for macos bash
This commit is contained in:
@@ -198,7 +198,7 @@ prompt_yes_no() {
|
||||
while true; do
|
||||
printf '%s %s: ' "$label" "$prompt" >"$PROMPT_OUTPUT"
|
||||
IFS= read -r answer <"$PROMPT_INPUT" || true
|
||||
answer="${answer,,}"
|
||||
answer="$(printf '%s' "$answer" | tr '[:upper:]' '[:lower:]')"
|
||||
if [[ -z "$answer" ]]; then
|
||||
answer="$default_value"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user