summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/clock/hackvr-clock
diff options
context:
space:
mode:
authorepoch <epoch@enzo.thebackupbox.net>2021-05-15 07:46:43 +0000
committerepoch <epoch@enzo.thebackupbox.net>2021-05-15 07:46:43 +0000
commit817808e4ce20d83c71e82c7aeb4c3f7720846cf2 (patch)
tree8426e37ea4d4458d5fcc01598f30e876e71cb4ba /share/hackvr/examples/clock/hackvr-clock
parenta1f549f07c378aa57852e288f0405ac8af18d907 (diff)
downloadhackvr-817808e4ce20d83c71e82c7aeb4c3f7720846cf2.tar.gz
hackvr-817808e4ce20d83c71e82c7aeb4c3f7720846cf2.zip
hackvr-clock was matching on the line that does the matching instead of just the line it wanted
Diffstat (limited to 'share/hackvr/examples/clock/hackvr-clock')
-rwxr-xr-xshare/hackvr/examples/clock/hackvr-clock3
1 files changed, 1 insertions, 2 deletions
diff --git a/share/hackvr/examples/clock/hackvr-clock b/share/hackvr/examples/clock/hackvr-clock
index 50f0f2c..95ba948 100755
--- a/share/hackvr/examples/clock/hackvr-clock
+++ b/share/hackvr/examples/clock/hackvr-clock
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
-set -eo pipefail
if [ "$1" = "init" ];then
- grep -A1000 '___CUT___' "$0"
+ grep -A1000 '^___CUT___' "$0" | tail -n+2
exit
elif [ "$1" = "set" ];then
hour=$(date +%H | sed 's/^0//')