From a0453c31ab036bd16bf10909561e21489b901407 Mon Sep 17 00:00:00 2001 From: Wojciech Knapik Date: Thu, 9 Jan 2025 22:16:49 +0100 Subject: [PATCH] wip --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b5d7a9b..79cbed3 100755 --- a/install.sh +++ b/install.sh @@ -131,7 +131,7 @@ main() { } # Helpers -am_admin() { [ "$(id -u)" = 0 ] || ( [ "$os" = Darwin ] && id -Gn|grep -qw admin ); } +am_admin() { [ "$(id -u)" = 0 ] || ( [ "$os" = Darwin ] && id -Gn|grep -Fwq admin ); } available() { command -v "${1:?}" >/dev/null; } error() { exec >&2; printf "Error: "; printf "%s\n" "${@:?}"; exit 1; } newer() { [ "$(printf "%s\n%s" "$1" "$2"|sort -V|head -n1)" = "${2:?}" ]; }