Added yad dialogues if in GUI session, retains the dialog interface if in console.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# âe contents of this file are subject to the Common Public Attribution
|
||||
# License Version 1.0 (the âcenseâ you may not use this file except in
|
||||
@ -37,6 +37,10 @@
|
||||
# Works which are defined in the CPAL as a work which combines Covered Code
|
||||
# or portions thereof with code not governed by the terms of the CPAL.
|
||||
|
||||
|
||||
# Source dialog interface wrapper
|
||||
source "${0%/*}/../.includes/dialog-interface.sh"
|
||||
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
updateURL="https://www.kaldobsky.com/audiogames"
|
||||
updateFiles=("rettou.zip")
|
||||
@ -47,7 +51,7 @@ for i in "${updateFiles[@]}" ; do
|
||||
rm -fv "${cache}/${i}"
|
||||
curl -L4 -C - --retry 10 --output "${cache}/$i" "${updateURL}/$i"
|
||||
unzip -o -d ~/".local/wine/aprone/drive_c/Program Files/rettou" "${cache}/${i}"
|
||||
done | dialog --progressbox "Updating Rettou, please wait..." -1 -1
|
||||
done | agm_progressbox "Rettou Update" "Updating Rettou, please wait..."
|
||||
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user