add missing leading / to destination in case object_id is taken

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
remotes/origin/random_dot_cdist
Nico Schottelius 10 years ago
parent 34253a5c30
commit 0ddc848b1e
  1. 2
      cdist/conf/type/__rsync/gencode-local
  2. 2
      cdist/conf/type/__rsync/gencode-remote

@ -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 --

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

Loading…
Cancel
Save