add missing leading / to destination in case object_id is taken

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-02-12 16:21:15 +01:00
parent 34253a5c30
commit 0ddc848b1e
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ remote_user=$(cat "$__object/parameter/remote-user")
if [ -f "$__object/parameter/destination" ]; then
destination=$(cat "$__object/parameter/destination")
else
destination="$__object_id"
destination="/$__object_id"
fi
set --

View file

@ -1,7 +1,7 @@
if [ -f "$__object/parameter/destination" ]; then
destination=$(cat "$__object/parameter/destination")
else
destination="$__object_id"
destination="/$__object_id"
fi
ownergroup=""