From 817808e4ce20d83c71e82c7aeb4c3f7720846cf2 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 15 May 2021 07:46:43 +0000 Subject: hackvr-clock was matching on the line that does the matching instead of just the line it wanted --- share/hackvr/examples/clock/hackvr-clock | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'share/hackvr/examples/clock/hackvr-clock') 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//') -- cgit v1.2.3