feat core: try to use a wildcard in sed commands (spoiler: this will go very wrong)

This commit is contained in:
purple 2024-01-06 00:38:45 +01:00
parent e42f93a8c5
commit d0a09820f7

View file

@ -620,7 +620,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
# remove components
sed -i "s~""${s}$1${e}""~~g" "$co"/"$3"
sed -i "s~""${s}"*"${e}""~~g" "$co"/"$3"
sed -i "s~""<${identifier^}Component />""~~g" "$co"/"$3"
# add components
sed -i "s~""$im""~""${im}${s}$1${e}""~g" "$co"/"$3"