]> Kevux Git Server - fll/commitdiff
Regression: The --prepend command is not working.
authorKevin Day <Kevin@kevux.org>
Wed, 2 Jul 2025 02:19:13 +0000 (21:19 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 2 Jul 2025 02:19:13 +0000 (21:19 -0500)
The commit f856496d258a223eb7eb5f8fe645297e8af27b46 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 ea4b0ec10bbe57d1fa81aed0ff8eaa6661729042..e5687a69fb4ce374fbad2735ad016a8c01fe1c92 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=