fix core: -wipe did not exit after error

This commit is contained in:
prplwtf 2024-01-16 21:33:37 +01:00
parent 2199464f67
commit 7bdd83ee66

View file

@ -1582,6 +1582,7 @@ if [[ ( $2 == "-wipe" || $2 == "-w" ) ]]; then VCMD="y"
if [[ -z $(find .blueprint/dev -maxdepth 1 -type f -not -name ".gitkeep" -print -quit) ]]; then if [[ -z $(find .blueprint/dev -maxdepth 1 -type f -not -name ".gitkeep" -print -quit) ]]; then
PRINT FATAL "Development directory is empty." PRINT FATAL "Development directory is empty."
exit 2
fi fi
PRINT INPUT "You are about to wipe all of your development files, are you sure you want to continue? This cannot be undone. (y/N)" PRINT INPUT "You are about to wipe all of your development files, are you sure you want to continue? This cannot be undone. (y/N)"