aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:08:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:42:03 +1200
commit8d0d01c441aec1227cd3013a5743b96f6bc8bf00 (patch)
tree058b56a9b720130da6d97eefc6320bd1f125683f
parentFix harebrained printf patterns (diff)
downloadpsshd-8d0d01c441aec1227cd3013a5743b96f6bc8bf00.tar.gz
psshd-8d0d01c441aec1227cd3013a5743b96f6bc8bf00.zip
Improve variable name
-rwxr-xr-xpsshd8
1 files changed, 4 insertions, 4 deletions
diff --git a/psshd b/psshd
index 4fea0fe..bbd44eb 100755
--- a/psshd
+++ b/psshd
@@ -54,14 +54,14 @@ if ! [[ "$port" ]]; then
fi
# Set up a PID dir
-dir=${TMPDIR:-/tmp}/psshd-${UID}
-if ! mkdir -p "$dir"; then
- printf 'Could not create directory %s for PID file\n' "$dir" >&2
+rundir=${TMPDIR:-/tmp}/psshd-${UID}
+if ! mkdir -p "$rundir"; then
+ printf 'Could not create directory %s for PID file\n' "$rundir" >&2
exit 1
fi
# Export the two settings autossh absolutely needs
-AUTOSSH_PIDFILE=${dir}/psshd-port-${port}.pid
+AUTOSSH_PIDFILE=${rundir}/psshd-port-${port}.pid
AUTOSSH_PORT=$port
export AUTOSSH_PIDFILE AUTOSSH_PORT