cogito: Escape $* in cg admin-setuprepro to fix problems with older bash versions
PATCH 1/1 cogito: Escape $* in cg admin-setuprepro to fix problems with older bash versions
Using $* in the _Here_ document at the end of cg-admin-setuprepro seriously confuses Bash v2.0.5b and causes lines produced by the _Here_ document to look something like
## EEnnaabbllee ggiitt--uuppddaattee--sseerrvveerr--iinnffoo
The problem does not occur with Bash 3.1.x. The patch below fixes this by escaping the dollar in "$*".
cg-admin-setuprepo +1 -1
@@ -91,7 +91,7 @@ fi _git="$uri" cat <<_SCRIPT_EOF_ | $shell $shellarg -die() { echo "$*" >&2; exit 1; } +die() { echo "\$*" >&2; exit 1; } export GIT_DIR="$uri"