__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
|
||||
echo git clone --quiet --branch "$branch" "$source" "$destination"
|
||||
fi
|
||||
if [ \( -n ${owner} -a "$owner_is" != "$owner" \) -o \
|
||||
\( -n ${group} -a "$group_is" != "$group" \) ]; then
|
||||
echo chown -R ${owner}:${group} ${destination}
|
||||
if [ \( -n "$owner" -a "$owner_is" != "$owner" \) -o \
|
||||
\( -n "$group" -a "$group_is" != "$group" \) ]; then
|
||||
echo chown -R "${owner}:${group}" "$destination"
|
||||
fi
|
||||
if [ -n ${mode} ]; then
|
||||
echo chmod -R ${mode} ${destination}
|
||||
if [ -n "$mode" ]; then
|
||||
echo chmod -R "$mode" "$destination"
|
||||
fi
|
||||
;;
|
||||
# Handled in manifest
|
||||
|
|
|
@ -27,6 +27,15 @@ state::
|
|||
branch::
|
||||
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
|
||||
--------
|
||||
|
|
Loading…
Reference in a new issue