From 20fa03a84607c4b140d3caa80ee177bfb7887bd2 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 3 Jan 2024 22:47:05 +0100 Subject: fix(hm/pkgs/scr/ytcc/filter_comments): Fail if not running --- hm/soispha/pkgs/scripts/specific/ytcc/filter_comments.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hm/soispha/pkgs/scripts/specific/ytcc/filter_comments.sh b/hm/soispha/pkgs/scripts/specific/ytcc/filter_comments.sh index 436a3bc5..ed744ccb 100755 --- a/hm/soispha/pkgs/scripts/specific/ytcc/filter_comments.sh +++ b/hm/soispha/pkgs/scripts/specific/ytcc/filter_comments.sh @@ -6,6 +6,7 @@ SHELL_LIBRARY_VERSION="1.10.2" . %SHELL_LIBRARY_PATH # This is the symlink to the active info.json file="$XDG_RUNTIME_DIR/ytcc/running"; +[ -e "$file" ] || die "No currently running instance found!" nest_comments.py "$file" | jq --raw-output -f %JQ_PREPROCCESSOR_SCRIPT | fmt -u -s --width=90 | less -r -- cgit 1.4.1