summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-21 12:26:58 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-21 12:26:58 -0400
commit1cd80a39fadd36c1af7a3e3e503fa07f608a1a49 (patch)
tree3f0394cae7511d402b37900e0b8cb9ec28595e26 /src/common
parent736054b1c1d8e3433d709ea8bbeb1b8ac7257927 (diff)
tiny change to comment
Diffstat (limited to 'src/common')
-rw-r--r--src/common3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common b/src/common
index 7df6908..c90fdd0 100644
--- a/src/common
+++ b/src/common
@@ -103,8 +103,9 @@ translate_ssh_variables() {
# get the user's home directory
userHome=$(getent passwd "$uname" | cut -d: -f6)
- # translate ssh-style path variables
+ # translate '%u' to user name
path=${path/\%u/"$uname"}
+ # translate '%h' to user home directory
path=${path/\%h/"$userHome"}
echo "$path"