abort if not all local source files are under version control
This looks a little hacky. The || true is needed because grep will return 1 if in fact everything is fine. implements FS#18048
This commit is contained in:
parent
30cfcdc501
commit
72a2b4789a
|
@ -49,6 +49,13 @@ else
|
|||
shift
|
||||
fi
|
||||
|
||||
# check if all local source files are under version control
|
||||
(for s in ${source[@]}; do
|
||||
echo $s | grep -vq '://' && \
|
||||
svn status $s | grep -q '?' && \
|
||||
abort "$s is not under version control"
|
||||
done) || true
|
||||
|
||||
# see if any limit options were passed, we'll send them to SCP
|
||||
unset rsyncopts
|
||||
if [ "$1" = "-l" ]; then
|
||||
|
|
Loading…
Reference in New Issue