From f576c7ac3b6fd5f6bbb3c0d0d1f979045fc54a10 Mon Sep 17 00:00:00 2001 From: Bekir Ozturk Date: Fri, 3 Sep 2021 17:00:12 +0200 Subject: [PATCH] Fix: machine_has is not working reliably on Alpine --- src/dotnet-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet-install.sh b/src/dotnet-install.sh index 1479131f00..1903673541 100755 --- a/src/dotnet-install.sh +++ b/src/dotnet-install.sh @@ -224,7 +224,7 @@ get_legacy_os_name() { machine_has() { eval $invocation - hash "$1" > /dev/null 2>&1 + command -v "$1" > /dev/null 2>&1 return $? }