From 1084923dbf25e1bc89b8f728c711f6446147cf5b Mon Sep 17 00:00:00 2001 From: Osama Albahrani <54853250+osalbahr@users.noreply.github.com> Date: Sun, 24 Dec 2023 13:03:02 -0500 Subject: [PATCH] gef.sh: Fix `which: command not found` This is mainly because Arch Linux no longer ships `which` in `base`: ```console $ bash -c "$(curl -fsSL https://gef.blah.cat/sh)" bash: line 9: which: command not found bash: line 11: which: command not found Please install cURL or wget and run again ``` --- scripts/gef.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gef.sh b/scripts/gef.sh index c406207d8..abccf6f6c 100755 --- a/scripts/gef.sh +++ b/scripts/gef.sh @@ -6,9 +6,9 @@ curl_found=0 wget_found=0 # check dependencies -if [ "$(which curl)" ]; then +if [ "$(command -v curl)" ]; then curl_found=1 -elif [ "$(which wget)" ]; then +elif [ "$(command -v wget)" ]; then wget_found=1 else echo "Please install cURL or wget and run again"