From d0a09820f72d599dd86f0dd46865049dab9ed60a Mon Sep 17 00:00:00 2001 From: purple Date: Sat, 6 Jan 2024 00:38:45 +0100 Subject: [PATCH] feat `core`: try to use a wildcard in sed commands (spoiler: this will go very wrong) --- blueprint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprint.sh b/blueprint.sh index 5e74b25..880eded 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -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"