Fix shellcheck warning

This commit is contained in:
a1346054 2021-08-21 18:03:13 +00:00
parent 335a8e09d6
commit 20b4d2cbcc
No known key found for this signature in database
GPG Key ID: D149AD21DC40440C

View File

@ -39,7 +39,7 @@ note() { echo "build-dist NOTE: $1"; }
# ask before dangerous things
confirm() {
[ "$2" ] && return
[ -n "$2" ] && return
printf "%s y/n: " "$1"
read r
[ "$r" = "y" ] || die "user abort"