1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

Avoid externals when parsing the os release on linux

This commit is contained in:
Dominik Ritter 2019-01-23 23:11:01 +01:00
parent 735994f82e
commit 938b0d49a1

View file

@ -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*)