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:
Pierre Schmitz 2010-02-11 15:19:13 +01:00
parent 30cfcdc501
commit 72a2b4789a
1 changed files with 7 additions and 0 deletions

View File

@ -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