summary refs log tree commit diff
path: root/home/.local/bin/sup
diff options
context:
space:
mode:
Diffstat (limited to 'home/.local/bin/sup')
-rwxr-xr-xhome/.local/bin/sup6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/.local/bin/sup b/home/.local/bin/sup
index 22f2b85e..33b268c8 100755
--- a/home/.local/bin/sup
+++ b/home/.local/bin/sup
@@ -1,8 +1,8 @@
-#!/usr/bin/env zsh
-set -o errexit -o nounset -o pipefail
+#!/bin/sh
+set -e -u
 
 dir=$(mktemp -d)
 screencapture -i "$dir/capture.png"
-pngo "$dir/capture.png"
+type pngo > /dev/null && pngo "$dir/capture.png"
 up "$dir/capture.png"
 rm -r "$dir"