From d2687a18c9194a2b71b8c7258d1f956620d75d8e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 25 Feb 2017 00:37:43 +1300 Subject: Appease ShellCheck on osc(1df) --- bin/osc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/osc b/bin/osc index a477c699..87f79365 100755 --- a/bin/osc +++ b/bin/osc @@ -5,7 +5,7 @@ self=osc # Check we have openssl(1); we need to fail early lest we go setting up FIFOs # needlessly if ! command -v openssl >/dev/null 2>&1 ; then - printf >&2 '%s: openssl(1) not found in $PATH\n' + printf >&2 '%s: openssl(1) not found\n' "$self" exit 1 fi @@ -55,7 +55,7 @@ set -- "$@" -connect "$host":"$serv" # Do the POSIX dance to kill child processes and clean up temp files even if # killed by a signal -td= fil= +td='' fil='' cleanup() { trap - EXIT "$1" [ -n "$fil" ] && kill -TERM "$fil" @@ -65,6 +65,7 @@ cleanup() { fi } for sig in EXIT HUP INT TERM ; do + # shellcheck disable=SC2064 trap "cleanup $sig" "$sig" done -- cgit v1.2.3