mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 07:48:14 +01:00
added ugly version-check
curl-check on the version in local VS raw on github to let the user know there's a new release.
This commit is contained in:
parent
a7bfb49fad
commit
08175c87ab
1 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
VERSION="v0.1.3"
|
||||
Github="https://github.com/mag37/dockcheck"
|
||||
|
||||
### Check if there's a new release of the script:
|
||||
LatestRelease="$(curl -s -r 0-30 https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
|
||||
[ $VERSION != $LatestRelease ] && printf "New version available! Latest: $LatestRelease - Local: $VERSION \nGrab it here: $Github \n"
|
||||
|
||||
### Help Function:
|
||||
Help() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue