better check on script

This commit is contained in:
Tobias Powalowski 2024-08-31 15:11:59 +02:00
parent ac95416160
commit 289e81ab09

View file

@ -111,7 +111,7 @@ _run_update_installer() {
_run_autorun() { _run_autorun() {
if rg -q 'autorun=' /proc/cmdline && [[ ! -e "${_LOCAL_DB}" ]]; then 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}..." echo -n "Trying 30 seconds to download ${_REMOTE_AUTORUN}..."
_COUNT="" _COUNT=""
while true; do while true; do