allow building to rsync target, remove globbing from status report

svn path=/trunk/; revision=34242
This commit is contained in:
2016-09-08 00:40:34 +00:00
parent 51179ae757
commit d05f339e7b
2 changed files with 5 additions and 3 deletions

View File

@@ -91,9 +91,13 @@ if [ -z "$inc_arguments" ]; then
readonly tree="${tree:+$(realpath "$tree")}"
readonly stagedir="${stagedir:+$(realpath "$stagedir")}"
readonly basedir="${basedir:+$(realpath "$basedir")}"
readonly target="${target:+$(realpath "$target")}"
readonly domain="${domain:-www.fsfe.org}"
readonly command
if [ "$stagedir" != "$target" ] && printf %s "$target" |egrep -q '^.+@.+:(.+)?$'; then
readonly target
else
readonly target="${target:+$(realpath "$target")}"
fi
case "$command" in
build_into) [ -z "$target" ] && die "Missing destination directory" ;;