__git: quote variables in gencode-remote, add optional parameters in manpage
This commit is contained in:
parent
b06a77ff8d
commit
211363d5be
2 changed files with 14 additions and 5 deletions
|
@ -51,12 +51,12 @@ case $state_should in
|
||||||
if [ "$state_should" != "$state_is" ]; then
|
if [ "$state_should" != "$state_is" ]; then
|
||||||
echo git clone --quiet --branch "$branch" "$source" "$destination"
|
echo git clone --quiet --branch "$branch" "$source" "$destination"
|
||||||
fi
|
fi
|
||||||
if [ \( -n ${owner} -a "$owner_is" != "$owner" \) -o \
|
if [ \( -n "$owner" -a "$owner_is" != "$owner" \) -o \
|
||||||
\( -n ${group} -a "$group_is" != "$group" \) ]; then
|
\( -n "$group" -a "$group_is" != "$group" \) ]; then
|
||||||
echo chown -R ${owner}:${group} ${destination}
|
echo chown -R "${owner}:${group}" "$destination"
|
||||||
fi
|
fi
|
||||||
if [ -n ${mode} ]; then
|
if [ -n "$mode" ]; then
|
||||||
echo chmod -R ${mode} ${destination}
|
echo chmod -R "$mode" "$destination"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
# Handled in manifest
|
# Handled in manifest
|
||||||
|
|
|
@ -27,6 +27,15 @@ state::
|
||||||
branch::
|
branch::
|
||||||
Create this branch by checking out the remote branch of this name
|
Create this branch by checking out the remote branch of this name
|
||||||
|
|
||||||
|
group::
|
||||||
|
Group to chgrp to.
|
||||||
|
|
||||||
|
mode::
|
||||||
|
Unix permissions, suitable for chmod.
|
||||||
|
|
||||||
|
owner::
|
||||||
|
User to chown to.
|
||||||
|
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
--------
|
--------
|
||||||
|
|
Loading…
Reference in a new issue