1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-28 11:15:58 +00:00
seahub/tests/test_frontend_changes.sh

27 lines
333 B
Bash
Raw Permalink Normal View History

2024-08-09 04:33:44 +00:00
#!/bin/bash
check_path_fn()
{
FN=$1
shift
patt="frontend*"
[[ $FN == $patt ]] && return 1
return 0
}
FILES=`git diff --name-only HEAD~`
for i in $FILES
do
check_path_fn $i
retval=$?
if [ "$retval" == 1 ]; then
echo "File changes need to trigger tests."
exit 0
fi
done
exit 1