[debian-edu-commits] [Git][debian-edu/debian-edu-config][personal/sunweaver/hostname-cmdline-override] share/debian-edu-config/d-i/pre-pkgsel: strip hyphens only when present
Daniel Teichmann (@dzatoah)
gitlab at salsa.debian.org
Fri Aug 21 19:35:32 BST 2026
Daniel Teichmann pushed to branch personal/sunweaver/hostname-cmdline-override at Debian Edu / debian-edu-config
Commits:
b5142e32 by Daniel Teichmann at 2026-08-21T20:35:27+02:00
share/debian-edu-config/d-i/pre-pkgsel: strip hyphens only when present
Use 's/^-+//' / 's/-+$//' instead of '-*' so the substitution only
fires when there actually is a leading/trailing hyphen to remove.
- - - - -
1 changed file:
- share/debian-edu-config/d-i/pre-pkgsel
Changes:
=====================================
share/debian-edu-config/d-i/pre-pkgsel
=====================================
@@ -185,7 +185,7 @@ EOF
sed -n -re "s/.*(^| )hostname=([^ ]+).*/\2/p" |
tr A-Z a-z |
tr -cd 'a-z0-9-' |
- sed -e 's/^-*//' -e 's/-*$//')
+ sed -e 's/^-+//' -e 's/-+$//')
if echo $PROFILE | grep -q Main-Server ; then
:
elif [ -n "${PROC_CMDLINE_HOSTNAME}" ]; then
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/b5142e32974f13b8f907411a370c399655186f08
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/b5142e32974f13b8f907411a370c399655186f08
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20260821/8a8048fb/attachment.htm>
More information about the debian-edu-commits
mailing list