mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 02:18:39 +00:00
Update github-apply (#14875)
This commit is contained in:
parent
de16bbdc49
commit
4446935901
@ -2,8 +2,11 @@
|
||||
|
||||
LIBRENMS_DIR=$(dirname "$(readlink -f "$0/..")")
|
||||
cd "$LIBRENMS_DIR" || exit
|
||||
for pr in "$@"
|
||||
do
|
||||
case $pr in
|
||||
''|*[!0-9]*) echo "You must specify a PR number to apply a patch" ;;
|
||||
*) curl -s https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/"${pr}".diff | git apply --exclude=*.png -v ;;
|
||||
esac
|
||||
done
|
||||
|
||||
case $1 in
|
||||
''|*[!0-9]*) echo "You must specify a PR number to apply a patch" ;;
|
||||
*) curl -s https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/"${1}".diff | git apply --exclude=*.png -v ;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user