fix core
: new placeholder escape thing
This commit is contained in:
parent
17516cb316
commit
57b238a684
1 changed files with 40 additions and 40 deletions
80
blueprint.sh
80
blueprint.sh
|
@ -611,50 +611,50 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
|
||||||
# Step 4: Apply conditional placeholders.
|
# Step 4: Apply conditional placeholders.
|
||||||
# Step 5: Switch escaped placeholders back to their original form, without the backslash.
|
# Step 5: Switch escaped placeholders back to their original form, without the backslash.
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s~\\\{identifier~{!!!!identifier~g" \
|
-e "s~!\{identifier~{!!!!identifier~g" \
|
||||||
-e "s~\\\{name~{!!!!name~g" \
|
-e "s~!\{name~{!!!!name~g" \
|
||||||
-e "s~\\\{author~{!!!!author~g" \
|
-e "s~!\{author~{!!!!author~g" \
|
||||||
-e "s~\\\{version~{!!!!version~g" \
|
-e "s~!\{version~{!!!!version~g" \
|
||||||
-e "s~\\\{random~{!!!!random~g" \
|
-e "s~!\{random~{!!!!random~g" \
|
||||||
-e "s~\\\{timestamp~{!!!!timestamp~g" \
|
-e "s~!\{timestamp~{!!!!timestamp~g" \
|
||||||
-e "s~\\\{mode~{!!!!mode~g" \
|
-e "s~!\{mode~{!!!!mode~g" \
|
||||||
-e "s~\\\{target~{!!!!target~g" \
|
-e "s~!\{target~{!!!!target~g" \
|
||||||
-e "s~\\\{root~{!!!!root~g" \
|
-e "s~!\{root~{!!!!root~g" \
|
||||||
-e "s~\\\{webroot~{!!!!webroot~g" \
|
-e "s~!\{webroot~{!!!!webroot~g" \
|
||||||
-e "s~\\\{is_~{!!!!is_~g" \
|
-e "s~!\{is_~{!!!!is_~g" \
|
||||||
\
|
\
|
||||||
-e "s~{identifier}~$identifier~g" \
|
-e "s~\{identifier}~$identifier~g" \
|
||||||
-e "s~{name}~$name~g" \
|
-e "s~\{name}~$name~g" \
|
||||||
-e "s~{author}~$EXT_AUTHOR~g" \
|
-e "s~\{author}~$EXT_AUTHOR~g" \
|
||||||
-e "s~{version}~$version~g" \
|
-e "s~\{version}~$version~g" \
|
||||||
-e "s~{random}~$RANDOM~g" \
|
-e "s~\{random}~$RANDOM~g" \
|
||||||
-e "s~{timestamp}~$INSTALL_STAMP~g" \
|
-e "s~\{timestamp}~$INSTALL_STAMP~g" \
|
||||||
-e "s~{mode}~$INSTALL_MODE~g" \
|
-e "s~\{mode}~$INSTALL_MODE~g" \
|
||||||
-e "s~{target}~$VERSION~g" \
|
-e "s~\{target}~$VERSION~g" \
|
||||||
-e "s~{root}~$FOLDER~g" \
|
-e "s~\{root}~$FOLDER~g" \
|
||||||
-e "s~{webroot}~/~g" \
|
-e "s~\{webroot}~/~g" \
|
||||||
\
|
\
|
||||||
-e "s~{identifier^}~${identifier^}~g" \
|
-e "s~\{identifier^}~${identifier^}~g" \
|
||||||
-e "s~{identifier!}~${identifier^^}~g" \
|
-e "s~\{identifier!}~${identifier^^}~g" \
|
||||||
-e "s~{name!}~${name^^}~g" \
|
-e "s~\{name!}~${name^^}~g" \
|
||||||
-e "s~{root/public}~$FOLDER/.blueprint/extensions/$identifier/public~g" \
|
-e "s~\{root/public}~$FOLDER/.blueprint/extensions/$identifier/public~g" \
|
||||||
-e "s~{root/data}~$FOLDER/.blueprint/extensions/$identifier/private~g" \
|
-e "s~\{root/data}~$FOLDER/.blueprint/extensions/$identifier/private~g" \
|
||||||
-e "s~{webroot/public}~/extensions/$identifier~g" \
|
-e "s~\{webroot/public}~/extensions/$identifier~g" \
|
||||||
-e "s~{webroot/fs}~/fs/extensions/$identifier~g" \
|
-e "s~\{webroot/fs}~/fs/extensions/$identifier~g" \
|
||||||
\
|
\
|
||||||
-e "s~{is_target}~$IS_TARGET~g" \
|
-e "s~\{is_target}~$IS_TARGET~g" \
|
||||||
\
|
\
|
||||||
-e "s~{!!!!identifier~{identifier~g" \
|
-e "s~\{!!!!identifier~{identifier~g" \
|
||||||
-e "s~{!!!!name~{name~g" \
|
-e "s~\{!!!!name~{name~g" \
|
||||||
-e "s~{!!!!author~{author~g" \
|
-e "s~\{!!!!author~{author~g" \
|
||||||
-e "s~{!!!!version~{version~g" \
|
-e "s~\{!!!!version~{version~g" \
|
||||||
-e "s~{!!!!random~{random~g" \
|
-e "s~\{!!!!random~{random~g" \
|
||||||
-e "s~{!!!!timestamp~{timestamp~g" \
|
-e "s~\{!!!!timestamp~{timestamp~g" \
|
||||||
-e "s~{!!!!mode~{mode~g" \
|
-e "s~\{!!!!mode~{mode~g" \
|
||||||
-e "s~{!!!!target~{target~g" \
|
-e "s~\{!!!!target~{target~g" \
|
||||||
-e "s~{!!!!root~{root~g" \
|
-e "s~\{!!!!root~{root~g" \
|
||||||
-e "s~{!!!!webroot~{webroot~g" \
|
-e "s~\{!!!!webroot~{webroot~g" \
|
||||||
-e "s~{!!!!is_~{is~g" \
|
-e "s~\{!!!!is_~{is~g" \
|
||||||
"$file"
|
"$file"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue