Skip to content

Commit

Permalink
Fix shellcheck _has syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPickles authored Nov 12, 2023
1 parent aa881d3 commit ca12b41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

# This script installs most relevant packages for Ubuntu 22.04.
_has() {
return "$(which "$1" >/dev/null)"
# shellcheck disable=SC2046 # Quoting everything gives the wrong semantics.
return $(which "$1" >/dev/null)
}

sudo apt install -y \
Expand Down

0 comments on commit ca12b41

Please sign in to comment.