Check if pipe is writable in wrapper
This commit is contained in:
parent
0d7303e75f
commit
84a1f34b0c
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user