You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of date are you using and what OS? On my Ubuntu 16.04 machine the -r flag displays the modification time of a file and errors when using the latest commit with this change. If it's an issue with the version of date or the OS there should be some check to determine the correct usage. Here's what date --version outputs for me:
date (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
When calling
next_drink
, I'm greeted by an error related to the usage of thedate
function:My solution was changing thirsty.sh's call to the date function like so:
Calling next_drink now works:
Fun script 👍 :)
The text was updated successfully, but these errors were encountered: