DocSpace-buildtools/tools/check.sh

18 lines
234 B
Bash
Raw Permalink 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
2019-07-16 07:32:09 +00:00
echo 1
exit
2019-07-15 16:01:33 +00:00
fi
done
done
2019-07-16 07:32:09 +00:00
echo 0
exit
2019-07-15 16:01:33 +00:00