aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:14:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:45:10 +1200
commit6427c5fc3bad0ba77325b548aef4489d5b457de1 (patch)
tree6901d98d2122f194f26b6fa8e490be60d9af1eb0
parentImprove variable name (diff)
downloadpsshd-6427c5fc3bad0ba77325b548aef4489d5b457de1.tar.gz
psshd-6427c5fc3bad0ba77325b548aef4489d5b457de1.zip
Remove unnecessary variable bracing
-rwxr-xr-xpsshd4
1 files changed, 2 insertions, 2 deletions
diff --git a/psshd b/psshd
index bbd44eb..0806bb8 100755
--- a/psshd
+++ b/psshd
@@ -54,14 +54,14 @@ if ! [[ "$port" ]]; then
fi
# Set up a PID dir
-rundir=${TMPDIR:-/tmp}/psshd-${UID}
+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=${rundir}/psshd-port-${port}.pid
+AUTOSSH_PIDFILE=$rundir/psshd-port-${port}.pid
AUTOSSH_PORT=$port
export AUTOSSH_PIDFILE AUTOSSH_PORT