Fix code analysis

This commit is contained in:
Deda 2024-02-25 21:00:33 +01:00
parent 8802e584c0
commit 454e36503c

View File

@ -3,7 +3,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_ROOT="$SCRIPT_DIR/../.."
BASE_BRANCH="origin/master"
if [[ "$#" -ne 1 ]]; then
if [[ "$#" -ne 2 ]]; then
echo "Error: This script requires exactly 1 argument '--base-branch string', not $#"
exit 1
fi
@ -21,6 +21,9 @@ while [[ "$#" -gt 0 ]]; do
esac
done
echo $SCRIPT_DIR
echo $PROJECT_ROOT
cd $PROJECT_ROOT
CHANGED_FILES=$(git diff -U0 $BASE_BRANCH ... --name-only --diff-filter=d)
for file in ${CHANGED_FILES}; do