From 289e81ab0926604dd6c5d1591c44ada52bc4102c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 31 Aug 2024 15:11:59 +0200 Subject: [PATCH] better check on script --- usr/lib/archboot/login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/login.sh b/usr/lib/archboot/login.sh index 8e7d7f4e0..c21e94060 100644 --- a/usr/lib/archboot/login.sh +++ b/usr/lib/archboot/login.sh @@ -111,7 +111,7 @@ _run_update_installer() { _run_autorun() { if rg -q 'autorun=' /proc/cmdline && [[ ! -e "${_LOCAL_DB}" ]]; then - _REMOTE_AUTORUN="$(rg -o 'autorun=(.*/.*\.sh)' -r '$1' /proc/cmdline)" + _REMOTE_AUTORUN="$(rg -o 'autorun=(.*)' -r '$1' /proc/cmdline | sd ' .*' '')" echo -n "Trying 30 seconds to download ${_REMOTE_AUTORUN}..." _COUNT="" while true; do