zpropheter / Jamf-Log-Grabber

Finds logs and plists related to Jamf management settings
38 stars 7 forks source link

Start and Finish time in Results.txt are the same #19

Closed zpropheter closed 2 months ago

zpropheter commented 3 months ago

Describe the bug When running JLG, the results.txt shows the start/finish time as the same because the values are stored in the variable at the start of the run.

To Reproduce Steps to reproduce the behavior:

  1. Run the script
  2. Examine the results.txt file

Expected behavior JLG would accurately stamp start and finish times

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

zpropheter commented 3 months ago

Commented out previous method on line 56 Added Function to call the current time each time "$(currenttime)" is called.

Code as follows: currenttime() { date +"%D %T" }