Skip to content

Commit 69685d5

Browse files
committed
fix core: placeholders
1 parent 57b238a commit 69685d5

1 file changed

Lines changed: 40 additions & 40 deletions

File tree

blueprint.sh

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -611,50 +611,50 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
611611
# Step 4: Apply conditional placeholders.
612612
# Step 5: Switch escaped placeholders back to their original form, without the backslash.
613613
sed -i \
614-
-e "s~!\{identifier~{!!!!identifier~g" \
615-
-e "s~!\{name~{!!!!name~g" \
616-
-e "s~!\{author~{!!!!author~g" \
617-
-e "s~!\{version~{!!!!version~g" \
618-
-e "s~!\{random~{!!!!random~g" \
619-
-e "s~!\{timestamp~{!!!!timestamp~g" \
620-
-e "s~!\{mode~{!!!!mode~g" \
621-
-e "s~!\{target~{!!!!target~g" \
622-
-e "s~!\{root~{!!!!root~g" \
623-
-e "s~!\{webroot~{!!!!webroot~g" \
624-
-e "s~!\{is_~{!!!!is_~g" \
614+
-e "s~!{identifier~{!!!!identifier~g" \
615+
-e "s~!{name~{!!!!name~g" \
616+
-e "s~!{author~{!!!!author~g" \
617+
-e "s~!{version~{!!!!version~g" \
618+
-e "s~!{random~{!!!!random~g" \
619+
-e "s~!{timestamp~{!!!!timestamp~g" \
620+
-e "s~!{mode~{!!!!mode~g" \
621+
-e "s~!{target~{!!!!target~g" \
622+
-e "s~!{root~{!!!!root~g" \
623+
-e "s~!{webroot~{!!!!webroot~g" \
624+
-e "s~!{is_~{!!!!is_~g" \
625625
\
626-
-e "s~\{identifier}~$identifier~g" \
627-
-e "s~\{name}~$name~g" \
628-
-e "s~\{author}~$EXT_AUTHOR~g" \
629-
-e "s~\{version}~$version~g" \
630-
-e "s~\{random}~$RANDOM~g" \
631-
-e "s~\{timestamp}~$INSTALL_STAMP~g" \
632-
-e "s~\{mode}~$INSTALL_MODE~g" \
633-
-e "s~\{target}~$VERSION~g" \
634-
-e "s~\{root}~$FOLDER~g" \
635-
-e "s~\{webroot}~/~g" \
626+
-e "s~{identifier}~$identifier~g" \
627+
-e "s~{name}~$name~g" \
628+
-e "s~{author}~$EXT_AUTHOR~g" \
629+
-e "s~{version}~$version~g" \
630+
-e "s~{random}~$RANDOM~g" \
631+
-e "s~{timestamp}~$INSTALL_STAMP~g" \
632+
-e "s~{mode}~$INSTALL_MODE~g" \
633+
-e "s~{target}~$VERSION~g" \
634+
-e "s~{root}~$FOLDER~g" \
635+
-e "s~{webroot}~/~g" \
636636
\
637-
-e "s~\{identifier^}~${identifier^}~g" \
638-
-e "s~\{identifier!}~${identifier^^}~g" \
639-
-e "s~\{name!}~${name^^}~g" \
640-
-e "s~\{root/public}~$FOLDER/.blueprint/extensions/$identifier/public~g" \
641-
-e "s~\{root/data}~$FOLDER/.blueprint/extensions/$identifier/private~g" \
642-
-e "s~\{webroot/public}~/extensions/$identifier~g" \
643-
-e "s~\{webroot/fs}~/fs/extensions/$identifier~g" \
637+
-e "s~{identifier^}~${identifier^}~g" \
638+
-e "s~{identifier!}~${identifier^^}~g" \
639+
-e "s~{name!}~${name^^}~g" \
640+
-e "s~{root/public}~$FOLDER/.blueprint/extensions/$identifier/public~g" \
641+
-e "s~{root/data}~$FOLDER/.blueprint/extensions/$identifier/private~g" \
642+
-e "s~{webroot/public}~/extensions/$identifier~g" \
643+
-e "s~{webroot/fs}~/fs/extensions/$identifier~g" \
644644
\
645-
-e "s~\{is_target}~$IS_TARGET~g" \
645+
-e "s~{is_target}~$IS_TARGET~g" \
646646
\
647-
-e "s~\{!!!!identifier~{identifier~g" \
648-
-e "s~\{!!!!name~{name~g" \
649-
-e "s~\{!!!!author~{author~g" \
650-
-e "s~\{!!!!version~{version~g" \
651-
-e "s~\{!!!!random~{random~g" \
652-
-e "s~\{!!!!timestamp~{timestamp~g" \
653-
-e "s~\{!!!!mode~{mode~g" \
654-
-e "s~\{!!!!target~{target~g" \
655-
-e "s~\{!!!!root~{root~g" \
656-
-e "s~\{!!!!webroot~{webroot~g" \
657-
-e "s~\{!!!!is_~{is~g" \
647+
-e "s~{!!!!identifier~{identifier~g" \
648+
-e "s~{!!!!name~{name~g" \
649+
-e "s~{!!!!author~{author~g" \
650+
-e "s~{!!!!version~{version~g" \
651+
-e "s~{!!!!random~{random~g" \
652+
-e "s~{!!!!timestamp~{timestamp~g" \
653+
-e "s~{!!!!mode~{mode~g" \
654+
-e "s~{!!!!target~{target~g" \
655+
-e "s~{!!!!root~{root~g" \
656+
-e "s~{!!!!webroot~{webroot~g" \
657+
-e "s~{!!!!is_~{is~g" \
658658
"$file"
659659

660660

0 commit comments

Comments
 (0)