diff options
Diffstat (limited to '')
-rw-r--r-- | catsit.sh (renamed from spawn.sh) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spawn.sh b/catsit.sh index 052a7fd..bc18a46 100644 --- a/spawn.sh +++ b/catsit.sh @@ -6,18 +6,18 @@ die() { exit 1 } -: ${SPAWND_PIPE:=/var/run/spawnd.pipe} +: ${CATSITD_PIPE:=/var/run/catsitd.pipe} while getopts 'c:' opt; do case "${opt}" in - (c) SPAWND_PIPE=$OPTARG;; + (c) CATSITD_PIPE=$OPTARG;; (?) exit 1;; esac done shift $((OPTIND - 1)) -if ! [ -p "${SPAWND_PIPE}" ]; then - die "${SPAWND_PIPE} is not a named pipe" +if ! [ -p "${CATSITD_PIPE}" ]; then + die "${CATSITD_PIPE} is not a named pipe" fi [ $# -lt 1 ] && die 'action required' @@ -31,4 +31,4 @@ if [ "${action}" != "${valid}" ]; then die "${action} is not a valid action or signal" fi -echo "$@" > "${SPAWND_PIPE}" +echo "$@" > "${CATSITD_PIPE}" |