diff --git a/sup b/sup index 3eb6652..01569a9 100755 --- a/sup +++ b/sup @@ -49,7 +49,7 @@ sup.mktemp() { sup.scrot() { local tmp_file - [[ "$scrot_exec" ]] || { scrot_exec=`which scrot`; } + [[ "$scrot_exec" ]] || { scrot_exec=`type -P scrot`; } [[ "$scrot_exec" ]] || { sup.err "Please install scrot to use this function" return 1