"blueprint -install example.blueprint" will no longer cause a "not found" error.

This commit is contained in:
purple 2023-09-29 17:19:27 +02:00
parent 150c3b6273
commit 0506ee76ea

View file

@ -320,6 +320,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
dev=false dev=false
n=$3 n=$3
FILE=$n".blueprint" FILE=$n".blueprint"
if [[ ( $FILE == *".blueprint.blueprint" ) && ( $n == *".blueprint" ) ]]; then FILE=$n;fi
if [[ ! -f "$FILE" ]]; then quit_red "[FATAL] $FILE could not be found.";fi if [[ ! -f "$FILE" ]]; then quit_red "[FATAL] $FILE could not be found.";fi
ZIP=$n".zip" ZIP=$n".zip"