diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-04 16:48:32 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-04 16:48:32 +0200 |
commit | cd85d6ee15f0cdbf837c4faf340abc398c942877 (patch) | |
tree | cd0f66caba4b34cbd8c76ca98b61e961908cc580 /src/c_go2work.go | |
parent | Caps ffs (diff) | |
download | go2work-cd85d6ee15f0cdbf837c4faf340abc398c942877.tar.gz go2work-cd85d6ee15f0cdbf837c4faf340abc398c942877.tar.bz2 go2work-cd85d6ee15f0cdbf837c4faf340abc398c942877.tar.xz go2work-cd85d6ee15f0cdbf837c4faf340abc398c942877.tar.zst go2work-cd85d6ee15f0cdbf837c4faf340abc398c942877.zip |
Test
Diffstat (limited to 'src/c_go2work.go')
-rw-r--r-- | src/c_go2work.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go index e4f40b5..ccd9f86 100644 --- a/src/c_go2work.go +++ b/src/c_go2work.go @@ -91,14 +91,14 @@ func main() { } options = parse_options() if check_time_format(dest_t) == false { - log.Fatalln(LOG_FORMAT) + log.Fatal(LOG_FORMAT) return } if check_media_player(options.Media_player) == false { log.Fatal("media player (" + options.Media_player + ") not found") return } - if options.Use_fortune == true && check_fortune() == false { + if options.Fortune == true && check_fortune() == false { print_fortune_not_found() } curr_t = get_time() @@ -115,7 +115,7 @@ func main() { curr_t[SECS] == dest_t[SECS] { file_id := choose_file(options) var args []string - if file_id > 0 { + if file_id >= 0 { args = append( options.Player_options, options.Files[file_id], @@ -129,7 +129,7 @@ func main() { has_rang := false for { exec_player( - options.Use_fortune, + options.Fortune, has_rang, options.Media_player, args..., |