continue
fi
echo "Checking $PROJECT"
- if [[ "$ALLOW_PROJECTS" != *"$PROJECT"* ]]; then
+ # strip path from the dirname
+ base_dir="$(basename -- "$PROJECT")"
+ if [[ "$ALLOW_PROJECTS" != *"$base_dir"* ]]; then
echo "ERROR: Not allowed project $PROJECT pulled"
EXIT_CODE="1"
fi