Get rid of tr

This commit is contained in:
Ben Schwartz 2021-02-12 14:18:16 -05:00
parent 4710a15536
commit c2ae78d4db

View file

@ -104,7 +104,7 @@ function confirm() {
echo -n "> $1 [Y/n] "
local RESPONSE
read RESPONSE
RESPONSE=$(echo "$RESPONSE" | tr '[:upper:]' '[:lower:]')
RESPONSE="${RESPONSE,,}" # Convert to lowercase
if [[ -z "$RESPONSE" ]] || [[ "$RESPONSE" = "y" ]] || [[ "$RESPONSE" = "yes" ]]; then
return 0
fi