icinga2: Add diff tool for OpenSuSE Build Service

This commit is contained in:
Markus Frosch 2017-08-25 10:09:25 +02:00
parent 57e4605875
commit d576c26bad
1 changed files with 17 additions and 0 deletions

17
diff-obs Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
project="$1"
if [ -z "$project" ]; then
project=server:monitoring
fi
if ! which osc &>/dev/null; then
echo "This script needs 'osc' to download files from OpenSuSE Build Service" >&2
exit 1
fi
osc cat "$project" icinga2 icinga2.spec >icinga2.obs.spec~
diff -Nau icinga2.spec icinga2.obs.spec~