Add -q quiet option to not print warnings. (Must be first argument).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3348 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
73aa9138da
commit
ec20664068
@ -12,6 +12,12 @@ if [ "$1" = -s ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
# -q to not print warnings
|
||||
if [ "$1" = -q ]; then
|
||||
QUIET="set"
|
||||
shift
|
||||
fi
|
||||
|
||||
status=`svn st $*`
|
||||
|
||||
# get list of files changed.
|
||||
@ -40,6 +46,9 @@ else
|
||||
fi
|
||||
|
||||
# warn about anything that isn't a modification or addition
|
||||
if [ -n "$QUIET" ]; then
|
||||
exit
|
||||
fi
|
||||
warn=`echo "$status" |egrep '^[^MA]'`
|
||||
if [ -n "$warn" ]; then
|
||||
echo 'Warnings:'
|
||||
|
Loading…
x
Reference in New Issue
Block a user