Commit 72a2b478 authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

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
parent 30cfcdc5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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