fix(antergos-live): stop sed clobbering remove_calamares_launcher definition
The sed 's/^remove_calamares_launcher/...' matched BOTH the function
definition ('remove_calamares_launcher() {') and the trailing call,
commenting out the definition. With the definition gone, the orphaned
'local launcher' body ran at top level, so the live-session dinit
service failed to start with:
line 232: local: can only be used in a function
line 239: syntax error near unexpected token '{'
No /var/log/antergos-live.log was ever written. Anchor the pattern to
the exact call with '$' so only the invocation is disabled and the
function stays intact.
Reproduced from the artix-live 0.14.1 source: pre-fix bash -n fails with
the identical two errors; post-fix it passes.
Also bump pkgver 2026.06 -> 2026.08, pkgrel 5 -> 6.
This commit is contained in:
@@ -7,8 +7,8 @@ pkgname=('antergos-live-base'
|
||||
'antergos-live-dinit'
|
||||
'antergos-live-openrc'
|
||||
'antergos-grub-live')
|
||||
pkgver=2026.06
|
||||
pkgrel=5
|
||||
pkgver=2026.08
|
||||
pkgrel=6
|
||||
pkgdesc='Antergos live session'
|
||||
arch=('any')
|
||||
url="https://github.com/Antergos-NeXT/antergos-live"
|
||||
@@ -25,7 +25,7 @@ build() {
|
||||
make -C artix-live
|
||||
|
||||
# Don't remove calamares.desktop — we ship a branded one
|
||||
sed -i 's/^remove_calamares_launcher/# remove_calamares_launcher/' artix-live/bin/artix-live
|
||||
sed -i 's/^remove_calamares_launcher$/# remove_calamares_launcher/' artix-live/bin/artix-live
|
||||
|
||||
# Uncomment calamares section so desktop-items copies it to localized Desktop
|
||||
sed -i '/# if .*calamares/,/# fi/ s/^# //' artix-live/bin/desktop-items
|
||||
|
||||
Reference in New Issue
Block a user