summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-10-11 14:48:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-10-11 14:48:40 -0400
commitff2a8882127f46f811dd73d2ef08bd99df6438f8 (patch)
tree845144968d0c09342ffa577d0c071a08055b5b58 /etc
parent042a0d2b4c66627a1f600000667df340261e1b1c (diff)
no show errors, duplicate handling
Diffstat (limited to 'etc')
-rwxr-xr-xetc/htmlopen.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/htmlopen.sh b/etc/htmlopen.sh
index a0d6c35..f6676e7 100755
--- a/etc/htmlopen.sh
+++ b/etc/htmlopen.sh
@@ -4,7 +4,8 @@
file=$(mktemp -u --suffix=.html)
-echo $file
+rm -f "$file"
+
cp "$1" "$file"
-setsid firefox "$file" &
+setsid firefox "$file" >/dev/null 2>&1 &