aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher R. Nelson <christopher.nelson@languidnights.com>2024-01-25 22:28:42 -0500
committerChristopher R. Nelson <christopher.nelson@languidnights.com>2024-01-25 22:28:42 -0500
commit329c8e64bd4610f06493b8ec6193449505773c78 (patch)
tree6ddd4e0ed223a100a39ca748b15fa06a0a53dd1c
parent39bd5394bf91411721bb5e06fdfc04aa20c63542 (diff)
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.
-rwxr-xr-xscripts/rh-client.in2
-rwxr-xr-xscripts/rh-server.in2
2 files changed, 0 insertions, 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))