]> Kevux Git Server - fll/commitdiff
Regression: The --prepend command is not working.
authorKevin Day <Kevin@kevux.org>
Wed, 2 Jul 2025 02:20:42 +0000 (21:20 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 2 Jul 2025 02:20:42 +0000 (21:20 -0500)
The commit f6868168d36a5fce97f92849ba21e5faa51b7845 introduced this problem.

The `<<< ${p}` was placed in the wrong location.
This happened due to a very simple regex that I used to mass make the changes.
I overlooked this complicated match pattern.

build/scripts/package.sh

index fd44e1650accf23c0baa6d24d5d4dca64bc34e2e..bf5cf5c570d2bac7d69c3644d5f36d1c0c0b8f15 100644 (file)
@@ -144,7 +144,7 @@ package_main() {
         elif [[ ${grab_next} == "prepend" ]] ; then
 
           # Provide a bare minimal sanitizer that probably doesn't catch everything that it ideally should.
-          prepend=$(sed -e 's|[\!~\`@#$%^&*( <<< ${p});:><?/"\\]||g' -e 's@|@@g' -e "s|'||g" -e "s|\s*||g")
+          prepend=$(sed -e 's|[\!~\`@#$%^&*();:><?/"\\]||g' -e 's@|@@g' -e "s|'||g" -e "s|\s*||g" <<< ${p})
         fi
 
         grab_next=