DocSpace-client/build/tools/check.sh

16 lines
220 B
Bash
Raw Normal View History

2019-07-15 16:01:33 +00:00
#!/bin/bash
CHANGES=$(/snap/libxml2/current/bin/xmllint --xpath '//changeSet/item/affectedPath/text()' $1);
shift
for i in $CHANGES
do
for j in $@
do
if [[ $i == $j* ]]; then
exit 1
fi
done
done
exit 0