mirror of
https://git.h0ster.org/fr4nz/helium-helper.git
synced 2026-03-19 05:30:17 +01:00
Update function changed
This commit is contained in:
parent
125aa7e318
commit
78515c2d7c
2 changed files with 8 additions and 4 deletions
|
|
@ -254,11 +254,13 @@ update_helium() {
|
|||
### COMPARE LOCAL & REMOTE VERSION
|
||||
LOCAL_VERSION_NUM=$(echo $LOCAL_VERSION | tr -d .)
|
||||
APP_SOURCE_VERSION_NUM=$(echo $APP_SOURCE_VERSION | tr -d .)
|
||||
APP_SOURCE_VERSION_NUM=$(echo "1.$APP_SOURCE_VERSION_NUM")
|
||||
LOCAL_VERSION_NUM=$(echo "1.$LOCAL_VERSION_NUM")
|
||||
|
||||
if [ "$APP_SOURCE_VERSION" == "$LOCAL_VERSION" ] ; then
|
||||
notify-send --icon="$ICON" "$NOTIFY_NAME" "Browser is up-to-date"
|
||||
|
||||
elif [ "$APP_SOURCE_VERSION_NUM" -gt "$LOCAL_VERSION_NUM" ] ; then
|
||||
elif [ $(echo "$APP_SOURCE_VERSION_NUM > $LOCAL_VERSION_NUM" | bc -l) -eq 1 ] ; then
|
||||
mkdir -p $TMP
|
||||
wget -P $TMP $DOWNLOAD_URL -q
|
||||
chmod +x $TMP/$APP_SOURCE_FILENAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue