mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
fixed doubleup of value. added dialog complete action to cleanup tasks
This commit is contained in:
@@ -829,6 +829,9 @@ runUpdateTool() {
|
|||||||
|
|
||||||
finishing() {
|
finishing() {
|
||||||
printlog "Finishing..."
|
printlog "Finishing..."
|
||||||
|
if [[ $SHOWPROGRESS == "yes" ]]; then
|
||||||
|
updateDialogProgress "complete" "$DIALOGCMDFILE"
|
||||||
|
fi
|
||||||
sleep 10 # wait a moment to let spotlight catch up
|
sleep 10 # wait a moment to let spotlight catch up
|
||||||
getAppVersion
|
getAppVersion
|
||||||
|
|
||||||
@@ -959,10 +962,10 @@ launchDialog() {
|
|||||||
icon="SF=arrow.down.to.line,colour=green,bgcolour=white,weight=regular"
|
icon="SF=arrow.down.to.line,colour=green,bgcolour=white,weight=regular"
|
||||||
|
|
||||||
# launch dialog
|
# launch dialog
|
||||||
/usr/local/bin/dialog --progress 100 -o \
|
/usr/local/bin/dialog -o \
|
||||||
--title "none" \
|
--title "none" \
|
||||||
--message "## Installing $name\n\nPlease wait..." \
|
--message "## Installing $name\n\nPlease wait..." \
|
||||||
--progress 150 \
|
--progress 120 \
|
||||||
--alignment centre \
|
--alignment centre \
|
||||||
--icon "$LOGO" \
|
--icon "$LOGO" \
|
||||||
--overlayicon "$icon" \
|
--overlayicon "$icon" \
|
||||||
|
|||||||
Reference in New Issue
Block a user