Make log script work on OSX.

[?]
Dec 10, 2017, 6:59 AM
VRMUVBP66QHIOSLOFYLN7W6EDCZVB42Y6X2MHDMCT3GCJ3KCW7DAC

Dependencies

  • [2] E7GQXOID Allow the use of a local .env file to store username/project ID for UI scripts.
  • [3] UOG5H2TW Default work logging credit to logged-in user.
  • [4] CDHZL3RP Add a couple of other CLI utilities for interacing with the service.

Change contents

  • edit in scripts/log.sh at line 15
    [2.947]
    [2.947]
    fi
    if [ $(uname) == 'Darwin' ]; then
    after=$(date -v-1m +"%Y-%m-%dT%H:%M:%S%z")
    else
    after=$(date -Iseconds --date='1 month ago')
  • replacement in scripts/log.sh at line 25
    [3.972][3.972:1068]()
    "https://aftok.com/projects/$PROJECT/logEntries?after=$(date -Iseconds --date='1 month ago')"
    [3.972]
    "https://aftok.com/projects/$PID/logEntries?after=${after}"