- #!/bin/sh
- set -e -x
- if [ -n "$PLUGIN_IGNORE" -a \( -n "$PLUGIN_POSITIVE" -o -n "$PLUGIN_NEGATIVE" \) ]; then
- set "$PLUGIN_IGNORE" "$PLUGIN_POSITIVE" "$PLUGIN_NEGATIVE"
- fi
- if git diff --name-only "$DRONE_COMMIT_AFTER" "$DRONE_COMMIT_BEFORE" | `dirname "$0"`/check-some-are-unignored.sh "$1"; then
- if [ -n "$2" ]; then touch "$2"; fi
- else
- if [ -n "$3" ]; then touch "$3"; fi
- fi
|