Avoid externals when parsing the os release on linux

pull/22/head
Dominik Ritter 6 years ago
parent 735994f82e
commit 938b0d49a1

@ -103,7 +103,7 @@ case $(uname) in
Linux)
OS='Linux'
if [ -f /etc/os-release ]; then
os_release_id="$(grep -E '^ID=([a-zA-Z]*)' /etc/os-release | cut -d '=' -f 2)"
[[ ${(f)"$((</etc/os-release) 2>/dev/null)"} =~ "ID=([A-Za-z]+)" ]] && os_release_id="${match[1]}"
fi
case "$os_release_id" in
*arch*)

Loading…
Cancel
Save