Skip to content

Commit

Permalink
Merge pull request #494 from knapsu/patch-1
Browse files Browse the repository at this point in the history
Fix command existence check
  • Loading branch information
TheAssassin authored Oct 18, 2017
2 parents abd2e3a + 66f2a35 commit 5a5779f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions desktopintegration
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ check_prevent()

check_dep()
{
DEP=$1
if [ -z $(which $DEP 2>&1 1>/dev/null) ] ; then
log "$DEP is missing. Skipping ${THIS}."
exit 0
if [ -z "$(command -v $1)" ]; then
log "$1 is missing. Skipping ${THIS}."
exit
fi
}

Expand Down

0 comments on commit 5a5779f

Please sign in to comment.