Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Avoid externals when parsing the os release on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter committed Jan 23, 2019
1 parent 735994f commit 938b0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/utilities.zsh
Expand Up @@ -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*)
Expand Down

0 comments on commit 938b0d4

Please sign in to comment.