Fix sed delimiters in various scripts

Found by Steev - "," is not a safe delimiter to use in various
places. Switch to "|" instead.
This commit is contained in:
Steve McIntyre 2021-01-16 15:26:02 +00:00
parent 7bf72e1306
commit e751f6f630
9 changed files with 16 additions and 15 deletions

1
debian/changelog vendored
View File

@ -17,6 +17,7 @@ debian-cd (3.1.26-buster) UNRELEASED; urgency=medium
parallel. parallel.
+ tools/make_disc_trees.pl: When compressing translations, remove + tools/make_disc_trees.pl: When compressing translations, remove
the uncompressed version the uncompressed version
+ Fix sed delimiters in various scripts
-- Samuel Thibault <sthibault@debian.org> Fri, 23 Aug 2019 21:51:50 +0200 -- Samuel Thibault <sthibault@debian.org> Fri, 23 Aug 2019 21:51:50 +0200

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -125,10 +125,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -125,10 +125,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -126,7 +126,7 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"

View File

@ -153,10 +153,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub # Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there # in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg # Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else else
echo " No EFI boot code for $ARCH on CD$N" echo " No EFI boot code for $ARCH on CD$N"