From d576c26bad29f355ac2a45209ceebb95ce5c43a8 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Fri, 25 Aug 2017 10:09:25 +0200 Subject: [PATCH] icinga2: Add diff tool for OpenSuSE Build Service --- diff-obs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 diff-obs diff --git a/diff-obs b/diff-obs new file mode 100755 index 0000000..4517c9c --- /dev/null +++ b/diff-obs @@ -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~