Skip to content

Commit

Permalink
Optimized conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kboshold committed Jul 31, 2024
1 parent 5246ba6 commit e309659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neovim-source/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ verify_is_root() {
}

install_dependencies() {
local id="$(grep -E 'ID=' /etc/os-release | cut -d '=' -f 2-)"
local id_like="$(grep -E 'ID_LIKE=' /etc/os-release | cut -d '=' -f 2-)"
local id="$(grep -E '^ID=' /etc/os-release | cut -d '=' -f 2-)"
local id_like="$(grep -E '^ID_LIKE=' /etc/os-release | cut -d '=' -f 2-)"

# Get an adjusted ID independent of distro variants
if [ "${id}" = "debian" ] || [ "${id_like}" = "debian" ]; then
Expand Down

0 comments on commit e309659

Please sign in to comment.