• osm0sis's avatar
    scripts: fix addon.d again by ensuring all arguments get passed · 84ecba46
    osm0sis authored
    - /proc/$$/cmdline is \0 terminated argument strings except for the last argument which has no terminus, so the last argument was being dropped by `while read` which requires input to be \n terminated
    - switch to a for loop, which will use the \n delimiter but also read the last argument; all arguments are still protected by quoting
    - clean up potentially breaking recovery env since $OLD_PATH no longer exists
    84ecba46
util_functions.sh 20 KB