X-Git-Url: https://git.ao2.it/drupal-init-tools.git/blobdiff_plain/cce156e037cf0e04db479c4eea768c0a933ae4b2..e952591fbade4a5eff19e7497806a434c32d9590:/libexec/clean.sh diff --git a/libexec/clean.sh b/libexec/clean.sh index 34ef55e..b1b4c16 100755 --- a/libexec/clean.sh +++ b/libexec/clean.sh @@ -20,7 +20,7 @@ set -e usage() { cat <&2; exit 1; } + CONFIRMATION_STRING="YESIAMSURE" echo "WARNING! This removes any files in the config/ web/ and vendor/ directories." echo "Are you sure you want to continue?" echo -read -p "Type ${CONFIRMATION_STRING} to confirm: " INPUT +read -r -p "Type ${CONFIRMATION_STRING} to confirm: " INPUT run() { - echo $* - $* + echo "$@" + "$@" } [ "$INPUT" = "$CONFIRMATION_STRING" ] && run sudo rm -rf config/ web/ vendor/ composer.lock