[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)" <[email protected]>
| Newsgroups | gmane.linux.skolelinux.cvs |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
debian-edu-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-edu-commits