From 57b238a68481eac9586f86ad1eba19139697ccc2 Mon Sep 17 00:00:00 2001 From: purple Date: Wed, 10 Apr 2024 11:57:11 +0200 Subject: [PATCH] fix `core`: new placeholder escape thing --- blueprint.sh | 80 ++++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/blueprint.sh b/blueprint.sh index ead9045..8698de9 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -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"