Skip to content

Commit

Permalink
0.0.7-b6
Browse files Browse the repository at this point in the history
Signed-off-by: Dan K. Snelson <[email protected]>
  • Loading branch information
dan-snelson committed Feb 9, 2024
1 parent c571caa commit c8d49c5
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions Inventory Update Progress/swiftDialog-Inventory-Update-Progress.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
export PATH=/usr/bin:/bin:/usr/sbin:/sbin

# Script Version & Client-side Log
scriptVersion="0.0.7-b5"
scriptLog="/var/log/org.churchofjesuschrist.log"
scriptVersion="0.0.7-b6"
scriptLog="/var/log/org.churchofjesuschrist.ics.log"

# Display an inventory progress dialog even if an inventory update is not required
displayProgessSansUpdate="true"

# swiftDialog Binary & Logs
swiftDialogMinimumRequiredVersion="2.4.0.4750"
Expand Down Expand Up @@ -561,15 +564,17 @@ if [[ ${ageInSeconds} -le ${secondsToWait} ]]; then

* | "Default" ) # Default Catch-all
notice "Inventory will NOT be updated …"
logComment "Display 'Inventory update not required' dialog …"
eval "$dialogInventoryUpdate" &
updateDialog "progress: 1"
updateDialog "icon: SF=checkmark.circle.fill,weight=bold,colour1=#00ff44,colour2=#075c1e"
updateDialog "message: Inventory update not required"
updateDialog "progress: 100"
updateDialog "progresstext: "
logComment "So long!"
sleep 3
if [[ "${displayProgessSansUpdate}" == "true" ]]; then
logComment "Display 'Inventory update not required' dialog …"
eval "$dialogInventoryUpdate" &
updateDialog "progress: 1"
updateDialog "icon: SF=checkmark.circle.fill,weight=bold,colour1=#00ff44,colour2=#075c1e"
updateDialog "message: Inventory update not required"
updateDialog "progress: 100"
updateDialog "progresstext: "
logComment "So long!"
sleep 3
fi
quitScript "0"
;;

Expand Down

0 comments on commit c8d49c5

Please sign in to comment.