aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_go2work.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 17:42:41 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 17:42:41 +0200
commitdf97122c656819c79a43aa8931f95e84688cbc1f (patch)
treea5fed6eb8d598efd423b9227db177c34cc70c014 /src/c_go2work.go
parentSet up default options, now going for random and true parse (diff)
downloadgo2work-df97122c656819c79a43aa8931f95e84688cbc1f.tar.gz
go2work-df97122c656819c79a43aa8931f95e84688cbc1f.tar.bz2
go2work-df97122c656819c79a43aa8931f95e84688cbc1f.tar.xz
go2work-df97122c656819c79a43aa8931f95e84688cbc1f.tar.zst
go2work-df97122c656819c79a43aa8931f95e84688cbc1f.zip
Good progress
Diffstat (limited to 'src/c_go2work.go')
-rw-r--r--src/c_go2work.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go
index faca5a3..c234e86 100644
--- a/src/c_go2work.go
+++ b/src/c_go2work.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* go2work: src/c_go2work.go
- * Fri Apr 1 17:03:18 CEST 2022
+ * Fri Apr 1 17:40:27 CEST 2022
* Joe
*
* The main.
@@ -116,12 +116,16 @@ func main() {
curr_t[SECS] == dest_t[SECS] {
// implement random
args := append(DEF_PLAYER_OPTIONS(), DEF_FILES()[0])
- exec_player(
- options.use_fortune,
- options.media_player,
- args...,
- )
- return
+ has_rang := false
+ for {
+ exec_player(
+ options.use_fortune,
+ has_rang,
+ options.media_player,
+ args...,
+ )
+ has_rang = true
+ }
}
case <- quit:
ticker.Stop()