added experimental upstream version check script
This commit is contained in:
parent
3d67aa9a01
commit
1a17599bd0
1 changed files with 23 additions and 0 deletions
23
upstream-version-check.sh
Executable file
23
upstream-version-check.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue