remaster/src/func/check_update

18 lines
451 B
Plaintext
Raw Normal View History

2018-05-12 22:02:09 +00:00
#!/bin/bash
#remaster lib
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
#check_update
function check_update() {
if curl https://raw.githubusercontent.com/6543/remaster/master/changes/remaster.md | diff - <(zcat <ROOTDIR>/usr/share/doc/remaster/changelog.gz ); then
echo 'REMASTER: Aktuell'
else
echo 'REMASTER: Warning: neue Version verfügbar'
fi
}
#this func is standalone executable
[ -n "$1" ] && {
check_update
}