This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| LOGFILE="$HOME/projects/dotfiles/work_track_time" | |
| #disables the error if the directory exists, creates parent directories if needed | |
| mkdir -p $(dirname $LOGFILE) | |
| _format_task () { | |
| # The assignment asks us to convert the time to HH:MM:SS, but also to make sure it runs correctly if the task exeeceds 24H. | |
| # I choose to optionally render the time as D:HH:MM:SS if the time exceedes 24H. | |
| local T=$1 |
NewerOlder