diff --git a/misc/build.func b/misc/build.func index a4a9dbc4d..7ff9605d7 100644 --- a/misc/build.func +++ b/misc/build.func @@ -13,6 +13,13 @@ if [ ! -d "misc" ] || [ ! -d "ct" ] || [ ! -d "install" ] || [ ! -f "README.md" exit 1 fi +echo "This script is about to run and will execute." +read -p "Do you understand and want to proceed? (y/n): " CONFIRM +if [[ "$CONFIRM" != "y" && "$CONFIRM" != "Y" ]]; then + echo "Exiting. Script was not executed." + exit 0 +fi + variables() { NSAPP=$(echo ${APP,,} | tr -d ' ') # This function sets the NSAPP variable by converting the value of the APP variable to lowercase and removing any spaces. var_install="${NSAPP}-install" # sets the var_install variable by appending "-install" to the value of NSAPP.