Fix shellcheck warning
This commit is contained in:
parent
335a8e09d6
commit
20b4d2cbcc
@ -39,7 +39,7 @@ note() { echo "build-dist NOTE: $1"; }
|
|||||||
|
|
||||||
# ask before dangerous things
|
# ask before dangerous things
|
||||||
confirm() {
|
confirm() {
|
||||||
[ "$2" ] && return
|
[ -n "$2" ] && return
|
||||||
printf "%s y/n: " "$1"
|
printf "%s y/n: " "$1"
|
||||||
read r
|
read r
|
||||||
[ "$r" = "y" ] || die "user abort"
|
[ "$r" = "y" ] || die "user abort"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user