feat(core): assign variables on a per-flag basis on -install
This commit is contained in:
parent
7950928b29
commit
26a42b3dd2
1 changed files with 15 additions and 0 deletions
15
blueprint.sh
15
blueprint.sh
|
@ -368,6 +368,21 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Assign variables for flags.
|
||||||
|
F_ignorePlaceholders=false
|
||||||
|
F_ignoreAlphabetPlaceholders=false
|
||||||
|
F_hasInstallScript=false
|
||||||
|
F_hasRemovalScript=false
|
||||||
|
F_hasExportScript=false
|
||||||
|
F_developerIgnoreInstallScript=false
|
||||||
|
if [[ ( $flags == *"ignorePlaceholders,"* ) || ( $flags == *"ignorePlaceholders" ) ]]; then F_ignorePlaceholders=true ;fi
|
||||||
|
if [[ ( $flags == *"ignoreAlphabetPlaceholders,"* ) || ( $flags == *"ignoreAlphabetPlaceholders" ) ]]; then F_ignoreAlphabetPlaceholders=true ;fi
|
||||||
|
if [[ ( $flags == *"hasInstallScript,"* ) || ( $flags == *"hasInstallScript" ) ]]; then F_hasInstallScript=true ;fi
|
||||||
|
if [[ ( $flags == *"hasRemovalScript,"* ) || ( $flags == *"hasRemovalScript" ) ]]; then F_hasRemovalScript=true ;fi
|
||||||
|
if [[ ( $flags == *"hasExportScript,"* ) || ( $flags == *"hasExportScript" ) ]]; then F_hasExportScript=true ;fi
|
||||||
|
if [[ ( $flags == *"developerIgnoreInstallScript,"* ) || ( $flags == *"developerIgnoreInstallScript" ) ]]; then F_developerIgnoreInstallScript=true ;fi
|
||||||
|
|
||||||
|
|
||||||
# "prevent" folder "escaping"
|
# "prevent" folder "escaping"
|
||||||
if [[ ( $icon == "/"* ) || ( $icon == "."* ) || ( $icon == *"\n"* ) ]] ||
|
if [[ ( $icon == "/"* ) || ( $icon == "."* ) || ( $icon == *"\n"* ) ]] ||
|
||||||
[[ ( $admin_view == "/"* ) || ( $admin_view == "."* ) || ( $admin_view == *"\n"* ) ]] ||
|
[[ ( $admin_view == "/"* ) || ( $admin_view == "."* ) || ( $admin_view == *"\n"* ) ]] ||
|
||||||
|
|
Loading…
Reference in a new issue