mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 13:48:29 +00:00
![osm0sis](/assets/img/avatar_default.png)
- /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