Skip to content

Commit

Permalink
[gef.sh] Replaced which with command (#1032)
Browse files Browse the repository at this point in the history
The `which` command is not consistently present on all distros by default. Prefer using `command` instead which seems to be.
  • Loading branch information
osalbahr committed Dec 26, 2023
1 parent 53c769c commit 951872b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gef.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 951872b

Please sign in to comment.