aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/grimshot6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/grimshot b/contrib/grimshot
index de2e7a7f..8a253ce8 100755
--- a/contrib/grimshot
+++ b/contrib/grimshot
@@ -51,8 +51,7 @@ die() {
51 51
52check() { 52check() {
53 COMMAND=$1 53 COMMAND=$1
54 command -v "$COMMAND" > /dev/null 2>&1 54 if command -v "$COMMAND" > /dev/null 2>&1; then
55 if [ $? ]; then
56 RESULT="OK" 55 RESULT="OK"
57 else 56 else
58 RESULT="NOT FOUND" 57 RESULT="NOT FOUND"
@@ -102,8 +101,7 @@ if [ "$ACTION" = "copy" ] ; then
102 rm "$TMP" 101 rm "$TMP"
103 notifyOk "$WHAT copied to buffer" 102 notifyOk "$WHAT copied to buffer"
104else 103else
105 takeScreenshot "$FILE" "$GEOM" 104 if takeScreenshot "$FILE" "$GEOM"; then
106 if [ $? ]; then
107 TITLE="Screenshot of $SUBJECT" 105 TITLE="Screenshot of $SUBJECT"
108 MESSAGE=$(basename "$FILE") 106 MESSAGE=$(basename "$FILE")
109 notifyOk "$MESSAGE" "$TITLE" 107 notifyOk "$MESSAGE" "$TITLE"