fix core: placeholders

This commit is contained in:
purple 2024-04-10 12:00:10 +02:00
parent 57b238a684
commit 69685d5ccb

View file

@ -611,50 +611,50 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
# Step 4: Apply conditional placeholders.
# Step 5: Switch escaped placeholders back to their original form, without the backslash.
sed -i \
-e "s~!\{identifier~{!!!!identifier~g" \
-e "s~!\{name~{!!!!name~g" \
-e "s~!\{author~{!!!!author~g" \
-e "s~!\{version~{!!!!version~g" \
-e "s~!\{random~{!!!!random~g" \
-e "s~!\{timestamp~{!!!!timestamp~g" \
-e "s~!\{mode~{!!!!mode~g" \
-e "s~!\{target~{!!!!target~g" \
-e "s~!\{root~{!!!!root~g" \
-e "s~!\{webroot~{!!!!webroot~g" \
-e "s~!\{is_~{!!!!is_~g" \
-e "s~!{identifier~{!!!!identifier~g" \
-e "s~!{name~{!!!!name~g" \
-e "s~!{author~{!!!!author~g" \
-e "s~!{version~{!!!!version~g" \
-e "s~!{random~{!!!!random~g" \
-e "s~!{timestamp~{!!!!timestamp~g" \
-e "s~!{mode~{!!!!mode~g" \
-e "s~!{target~{!!!!target~g" \
-e "s~!{root~{!!!!root~g" \
-e "s~!{webroot~{!!!!webroot~g" \
-e "s~!{is_~{!!!!is_~g" \
\
-e "s~\{identifier}~$identifier~g" \
-e "s~\{name}~$name~g" \
-e "s~\{author}~$EXT_AUTHOR~g" \
-e "s~\{version}~$version~g" \
-e "s~\{random}~$RANDOM~g" \
-e "s~\{timestamp}~$INSTALL_STAMP~g" \
-e "s~\{mode}~$INSTALL_MODE~g" \
-e "s~\{target}~$VERSION~g" \
-e "s~\{root}~$FOLDER~g" \
-e "s~\{webroot}~/~g" \
-e "s~{identifier}~$identifier~g" \
-e "s~{name}~$name~g" \
-e "s~{author}~$EXT_AUTHOR~g" \
-e "s~{version}~$version~g" \
-e "s~{random}~$RANDOM~g" \
-e "s~{timestamp}~$INSTALL_STAMP~g" \
-e "s~{mode}~$INSTALL_MODE~g" \
-e "s~{target}~$VERSION~g" \
-e "s~{root}~$FOLDER~g" \
-e "s~{webroot}~/~g" \
\
-e "s~\{identifier^}~${identifier^}~g" \
-e "s~\{identifier!}~${identifier^^}~g" \
-e "s~\{name!}~${name^^}~g" \
-e "s~\{root/public}~$FOLDER/.blueprint/extensions/$identifier/public~g" \
-e "s~\{root/data}~$FOLDER/.blueprint/extensions/$identifier/private~g" \
-e "s~\{webroot/public}~/extensions/$identifier~g" \
-e "s~\{webroot/fs}~/fs/extensions/$identifier~g" \
-e "s~{identifier^}~${identifier^}~g" \
-e "s~{identifier!}~${identifier^^}~g" \
-e "s~{name!}~${name^^}~g" \
-e "s~{root/public}~$FOLDER/.blueprint/extensions/$identifier/public~g" \
-e "s~{root/data}~$FOLDER/.blueprint/extensions/$identifier/private~g" \
-e "s~{webroot/public}~/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~\{!!!!name~{name~g" \
-e "s~\{!!!!author~{author~g" \
-e "s~\{!!!!version~{version~g" \
-e "s~\{!!!!random~{random~g" \
-e "s~\{!!!!timestamp~{timestamp~g" \
-e "s~\{!!!!mode~{mode~g" \
-e "s~\{!!!!target~{target~g" \
-e "s~\{!!!!root~{root~g" \
-e "s~\{!!!!webroot~{webroot~g" \
-e "s~\{!!!!is_~{is~g" \
-e "s~{!!!!identifier~{identifier~g" \
-e "s~{!!!!name~{name~g" \
-e "s~{!!!!author~{author~g" \
-e "s~{!!!!version~{version~g" \
-e "s~{!!!!random~{random~g" \
-e "s~{!!!!timestamp~{timestamp~g" \
-e "s~{!!!!mode~{mode~g" \
-e "s~{!!!!target~{target~g" \
-e "s~{!!!!root~{root~g" \
-e "s~{!!!!webroot~{webroot~g" \
-e "s~{!!!!is_~{is~g" \
"$file"