summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhome/.local/bin/sup6
-rwxr-xr-xhome/.local/bin/tup4
-rwxr-xr-xhome/.local/bin/up6
3 files changed, 8 insertions, 8 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"
diff --git a/home/.local/bin/tup b/home/.local/bin/tup
index 29af9b0a..543038da 100755
--- a/home/.local/bin/tup
+++ b/home/.local/bin/tup
@@ -1,5 +1,5 @@
-#!/usr/bin/env zsh
-set -o errexit -o nounset -o pipefail
+#!/bin/sh
+set -e -u
 
 dir=$(mktemp -d)
 cat > "$dir/input.txt"
diff --git a/home/.local/bin/up b/home/.local/bin/up
index 43b1929b..4f832a3c 100755
--- a/home/.local/bin/up
+++ b/home/.local/bin/up
@@ -1,5 +1,5 @@
-#!/usr/bin/env zsh
-set -o errexit -o nounset -o pipefail
+#!/bin/sh
+set -e -u
 
 ts=$(date +%s)
 rand=$(openssl rand -hex 4)
@@ -9,4 +9,4 @@ url=$(printf 'temp.causal.agency/%x%s.%s' "$ts" "$rand" "$ext")
 scp -q "$1" "temp.causal.agency:/usr/local/www/$url"
 
 echo "https://$url"
-type pbcopy > /dev/null && echo -n "https://$url" | pbcopy
+type pbcopy > /dev/null && printf "https://$url" | pbcopy