From 1a17599bd00060b49dcaf6086d76b429475c62fb Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 18 Sep 2017 21:55:02 +0200 Subject: [PATCH] added experimental upstream version check script --- upstream-version-check.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 upstream-version-check.sh diff --git a/upstream-version-check.sh b/upstream-version-check.sh new file mode 100755 index 0000000..fb4d621 --- /dev/null +++ b/upstream-version-check.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +cd /tmp + +if [[ -d intellij ]]; then + echo "An 'intellij' directory already exists. Aborting..." +fi + +git clone -q https://gitlab.com/mmk2410/intellij-idea-community.git intellij + +cd intellij + +uscan --nodownload +RESULT=$? + +if [[ $RESULT -eq 0 ]]; then + echo "New IntelliJ IDEA Version" | mail -s "New IntelliJ IDEA Version" opensource@mmk2410.org +fi + +cd .. +rm -rf intellij + +exit $RESULT