Browse Source

Shell check quoting

We're actually echo-ing the command, hence the escape in front of the
quotes - the issue Shellcheck alludes too would actually occur, had the
escaping bakcslashes been omitted.
ander/__rsync
fancsali 2 years ago
parent
commit
be92731c5c
  1. 3
      cdist/conf/type/__rsync/gencode-local

3
cdist/conf/type/__rsync/gencode-local vendored

@ -34,7 +34,8 @@ if [ -f "$__object/parameter/rsync-opts" ]; then
done < "$__object/parameter/rsync-opts"
fi
# shellcheck disable=SC2086
echo rsync -a \
--no-owner --no-group \
-e \"$__remote_exec\" \
-e \"${__remote_exec}\" \
-q "$@" "${source}/" "${remote_user}@${__target_host}:${destination}"

Loading…
Cancel
Save