Revert "Get rid of tr"

This reverts commit c2ae78d4db.
This commit is contained in:
Ben Schwartz 2021-02-12 14:57:45 -05:00
parent fe037ec726
commit db3a6f3ff7

View file

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