{"action":"created","issue":{"url":"https://api.github.com/repos/homebysix/auto-update-magic/issues/27","repository_url":"https://api.github.com/repos/homebysix/auto-update-magic","labels_url":"https://api.github.com/repos/homebysix/auto-update-magic/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/homebysix/auto-update-magic/issues/27/comments","events_url":"https://api.github.com/repos/homebysix/auto-update-magic/issues/27/events","html_url":"https://github.com/homebysix/auto-update-magic/issues/27","id":161159564,"number":27,"title":"Defaults write command throws error","user":{"login":"charliwest","id":7933076,"avatar_url":"https://avatars.githubusercontent.com/u/7933076?v=3","gravatar_id":"","url":"https://api.github.com/users/charliwest","html_url":"https://github.com/charliwest","followers_url":"https://api.github.com/users/charliwest/followers","following_url":"https://api.github.com/users/charliwest/following{/other_user}","gists_url":"https://api.github.com/users/charliwest/gists{/gist_id}","starred_url":"https://api.github.com/users/charliwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charliwest/subscriptions","organizations_url":"https://api.github.com/users/charliwest/orgs","repos_url":"https://api.github.com/users/charliwest/repos","events_url":"https://api.github.com/users/charliwest/events{/privacy}","received_events_url":"https://api.github.com/users/charliwest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-20T10:02:19Z","updated_at":"2016-06-20T20:16:32Z","closed_at":"2016-06-20T20:15:26Z","body":"In the last commit you edited this line \r\n\r\n`/usr/bin/defaults write \"$PLIST\" LastAutoUpdate -date \"$(date +%s)\"`\r\n\r\nWhen I run this it gives me an error\r\n\r\n> + /usr/bin/defaults write '/Library/Application Support/JAMF/com.jamfsoftware.jamfnation' LastAutoUpdate -date 1466415856\r\nCommand line interface to a user's defaults.\r\nSyntax:\r\n'defaults' [-currentHost | -host <hostname>] followed by one of the following:\r\n\r\nI have played around and kind of fixed it\r\n    `current=$(date +\"%Y-%m-%d %l:%M:%S +0000\") \r\n    # Record the timestamp of the last auto update check.\r\n    if [[ $DEBUG_MODE == false ]]; then\r\n    /usr/bin/defaults write \"$PLIST\" LastAutoUpdate -date \"$current\"\r\n    fi`\r\n\r\nAlthough could be fixed in other ways depending on what date stamp you want."},"comment":{"url":"https://api.github.com/repos/homebysix/auto-update-magic/issues/comments/227256277","html_url":"https://github.com/homebysix/auto-update-magic/issues/27#issuecomment-227256277","issue_url":"https://api.github.com/repos/homebysix/auto-update-magic/issues/27","id":227256277,"user":{"login":"homebysix","id":7801391,"avatar_url":"https://avatars.githubusercontent.com/u/7801391?v=3","gravatar_id":"","url":"https://api.github.com/users/homebysix","html_url":"https://github.com/homebysix","followers_url":"https://api.github.com/users/homebysix/followers","following_url":"https://api.github.com/users/homebysix/following{/other_user}","gists_url":"https://api.github.com/users/homebysix/gists{/gist_id}","starred_url":"https://api.github.com/users/homebysix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homebysix/subscriptions","organizations_url":"https://api.github.com/users/homebysix/orgs","repos_url":"https://api.github.com/users/homebysix/repos","events_url":"https://api.github.com/users/homebysix/events{/privacy}","received_events_url":"https://api.github.com/users/homebysix/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T20:16:32Z","updated_at":"2016-06-20T20:16:32Z","body":"Oops, thanks for catching that! I forgot to remove the `+%s`. "}}
{"actor":{"display_login":"homebysix"}}