mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
Avoid externals when parsing the os release on linux
This commit is contained in:
parent
735994f82e
commit
938b0d49a1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue