From ca12b41fd4fa4175bf772d18dad3a07502308c4c Mon Sep 17 00:00:00 2001 From: Andrew Liu Date: Sun, 12 Nov 2023 16:15:25 -0500 Subject: [PATCH] Fix shellcheck _has syntax --- scripts/ubuntu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ubuntu.sh b/scripts/ubuntu.sh index 629ecdb..cf2dfb2 100755 --- a/scripts/ubuntu.sh +++ b/scripts/ubuntu.sh @@ -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 \