which is not a builtin

This commit is contained in:
Jack L. Frost 2014-10-20 11:50:10 +04:00
parent a1f8c5b55f
commit 03d29593f5

2
sup
View File

@ -49,7 +49,7 @@ sup.mktemp() {
sup.scrot() { sup.scrot() {
local tmp_file local tmp_file
[[ "$scrot_exec" ]] || { scrot_exec=`which scrot`; } [[ "$scrot_exec" ]] || { scrot_exec=`type -P scrot`; }
[[ "$scrot_exec" ]] || { [[ "$scrot_exec" ]] || {
sup.err "Please install scrot to use this function" sup.err "Please install scrot to use this function"
return 1 return 1