DocSpace-client/build/tools/check.sh
2019-07-16 10:32:09 +03:00

18 lines
234 B
Bash

#!/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
echo 1
exit
fi
done
done
echo 0
exit