projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tiny change to comment
[monkeysphere.git]
/
src
/
common
diff --git
a/src/common
b/src/common
index 7df6908b348bc88f1f805de47f426179017cd667..c90fdd09c0d861e07328e41748fc3912994fe2e0 100644
(file)
--- 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)
# 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"}
path=${path/\%u/"$uname"}
+ # translate '%h' to user home directory
path=${path/\%h/"$userHome"}
echo "$path"
path=${path/\%h/"$userHome"}
echo "$path"