mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
10 lines
306 B
Bash
Executable File
10 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LIBRENMS_DIR=$(dirname "$(readlink -f "$0/..")")
|
|
cd "$LIBRENMS_DIR" || exit
|
|
|
|
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
|