From 03d29593f593cd99cd5c34acc34094c30488d43d Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 20 Oct 2014 11:50:10 +0400 Subject: [PATCH] which is not a builtin --- sup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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