commit 8b493f674c1f42c480c582d10cd50bdae0926555 parent 7d24116ba28af036f839da45a2356eaa1661c00a Author: Yuval Langer <yuval.langer@gmail.com> Date: Wed, 29 Nov 2023 22:46:18 +0200 Simplify shebang and call to main procedure. Diffstat:
M | clipboard-speaker.scm | | | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/clipboard-speaker.scm b/clipboard-speaker.scm @@ -1,10 +1,6 @@ -#!/usr/bin/env sh -exec guile -e '(@ (clipboard-speaker) main)' -s "$0" "$@" +#!/usr/bin/env guile !# -(define-module (clipboard-speaker) - #:export (main)) - (use-modules (srfi srfi-26) ((srfi srfi-180) #:prefix json:) @@ -343,3 +339,6 @@ exec guile -e '(@ (clipboard-speaker) main)' -s "$0" "$@" (config:option-ref options 'words-per-minute))) (exit EXIT_SUCCESS)) + + +(main (command-line))