fix(core): Attempt at fixing placeholder problems regarding spaces inside of file names.

This commit is contained in:
prplwtf 2023-10-25 19:38:09 +02:00
parent af5793c62e
commit 4862b99b7e

View file

@ -445,24 +445,24 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
fi
for f in $(find $DIR -type f -exec echo {} \;); do
sed -i "s~\^#version#\^~$version~g" $f
sed -i "s~\^#author#\^~$author~g" $f
sed -i "s~\^#name#\^~$name~g" $f
sed -i "s~\^#identifier#\^~$identifier~g" $f
sed -i "s~\^#path#\^~$FOLDER~g" $f
sed -i "s~\^#datapath#\^~$FOLDER/.blueprint/data/extensions/$identifier~g" $f
sed -i "s~\^#installmode#\^~$INSTALLMODE~g" $f
sed -i "s~\^#blueprintversion#\^~$VERSION~g" $f
sed -i "s~\^#version#\^~$version~g" "$f"
sed -i "s~\^#author#\^~$author~g" "$f"
sed -i "s~\^#name#\^~$name~g" "$f"
sed -i "s~\^#identifier#\^~$identifier~g" "$f"
sed -i "s~\^#path#\^~$FOLDER~g" "$f"
sed -i "s~\^#datapath#\^~$FOLDER/.blueprint/data/extensions/$identifier~g" "$f"
sed -i "s~\^#installmode#\^~$INSTALLMODE~g" "$f"
sed -i "s~\^#blueprintversion#\^~$VERSION~g" "$f"
if [[ $SKIPAZPLACEHOLDERS != true ]]; then
sed -i "s~__version__~$version~g" $f
sed -i "s~__author__~$author~g" $f
sed -i "s~__identifier__~$identifier~g" $f
sed -i "s~__name__~$name~g" $f
sed -i "s~__path__~$FOLDER~g" $f
sed -i "s~__datapath__~$FOLDER/.blueprint/data/extensions/$identifier~g" $f
sed -i "s~__installmode__~$INSTALLMODE~g" $f
sed -i "s~__blueprintversion__~$VERSION~g" $f
sed -i "s~__version__~$version~g" "$f"
sed -i "s~__author__~$author~g" "$f"
sed -i "s~__identifier__~$identifier~g" "$f"
sed -i "s~__name__~$name~g" "$f"
sed -i "s~__path__~$FOLDER~g" "$f"
sed -i "s~__datapath__~$FOLDER/.blueprint/data/extensions/$identifier~g" "$f"
sed -i "s~__installmode__~$INSTALLMODE~g" "$f"
sed -i "s~__blueprintversion__~$VERSION~g" "$f"
fi
log_bright "[INFO] Done placeholders in '$f'."