From 329c8e64bd4610f06493b8ec6193449505773c78 Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Thu, 25 Jan 2024 22:28:42 -0500 Subject: fix: prevent duplicate running of 'main' when we switched to the new shebang format to keep GNU Guix happy, we didn't remove the run main command from the end of the script. this caused the main loop to be executed both when the interpreter decided what to do, and when the file was evaluated. --- scripts/rh-client.in | 2 -- scripts/rh-server.in | 2 -- 2 files changed, 4 deletions(-) diff --git a/scripts/rh-client.in b/scripts/rh-client.in index 8c96acb..5728813 100755 --- a/scripts/rh-client.in +++ b/scripts/rh-client.in @@ -135,5 +135,3 @@ (client-setup (option-ref options 'service-socket)) (rh-client-shutdown)) (#t (emit-help options))))) - -(main (command-line)) diff --git a/scripts/rh-server.in b/scripts/rh-server.in index a9dd758..452a40f 100755 --- a/scripts/rh-server.in +++ b/scripts/rh-server.in @@ -70,5 +70,3 @@ (rh-receive heap (option-ref options 'media-library) (string-append (option-ref options 'media-library) "/archive/")))))) - -(main (command-line)) -- cgit v1.2.3