From 84a1f34b0c40625ff517b5ff132d2cf05cb85143 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 15 Aug 2020 18:46:28 -0400 Subject: Check if pipe is writable in wrapper --- catsit.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catsit.sh') diff --git a/catsit.sh b/catsit.sh index bc18a46..0e2a7e1 100644 --- a/catsit.sh +++ b/catsit.sh @@ -19,6 +19,9 @@ shift $((OPTIND - 1)) if ! [ -p "${CATSITD_PIPE}" ]; then die "${CATSITD_PIPE} is not a named pipe" fi +if ! [ -w "${CATSITD_PIPE}" ]; then + die "${CATSITD_PIPE} is not writable" +fi [ $# -lt 1 ] && die 'action required' [ $# -lt 2 ] && die 'service name required' -- cgit 1.4.1 hange='this.form.submit();'> IRC logger
summary refs log tree commit diff
path: root/.gitignore (unfollow)
Commit message (Collapse)Author
2019-12-30Add initial rough version of scoopJune McEnroe
2019-12-30Join with USING wherever possibleJune McEnroe
2019-12-30Add -D flag to prospective scoop manualJune McEnroe
2019-12-30Order results by ID in outer query in litterboxJune McEnroe
2019-12-30Use X macro for Type enumJune McEnroe
2019-12-30Remove scoop -ABCJune McEnroe
I can almost get these to work with an inner and outer SQL query, but when contexts starts overlapping it becomes a disaster, so I'm leavin it out at least for now.
2019-12-30Add limit option for litterbox's search query interfaceJune McEnroe