fancier update

This commit is contained in:
q
2017-08-20 10:57:06 +03:00
parent 28579cad07
commit 101dbf2e19

View File

@@ -158,12 +158,16 @@ if [[ "$0" = "${BASH_SOURCE[0]}" ]]; then
fi
TMPFILE=$( mktemp )
rm -f "$TMPFILE"
wget -O "$TMPFILE" https://bitbucket.org/MoonQ/tools/raw/tip/reporting/qolop
echo "Checking for newer version"
wget -q -O "$TMPFILE" https://bitbucket.org/MoonQ/tools/raw/tip/reporting/qolop
diff "$TMPFILE" "$MYPATH" || {
mv -v "$TMPFILE" "$MYPATH"
chmod +x "$MYPATH"
echo Updated
source "$MYPATH"
_qColVersion
}
rm -f "$TMPFILE"
exit 0
} # end update
_qColHelp