[projects/pld-builder.new] request-handler.sh: exit instead of return outside a function
arekm
arekm at pld-linux.org
Mon Oct 26 17:16:15 CET 2026
commit 6aaf01c7ac4c30996a7d1464af0092744baf3afa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Oct 24 11:06:42 2026 +0200
request-handler.sh: exit instead of return outside a function
With bash as /bin/sh a busy lock made the script exit 0.
bin/request-handler.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/bin/request-handler.sh b/bin/request-handler.sh
index a3500b7..f9ac04d 100755
--- a/bin/request-handler.sh
+++ b/bin/request-handler.sh
@@ -16,5 +16,5 @@ if lockfile -r3 $HOME/.builder_request_handler.lock 2>/dev/null; then
python3 PLD_Builder/request_handler.py
rm -f $HOME/.builder_request_handler.lock
else
- return 1
+ exit 1
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ce9feb3c796ed049b6dd260a50d94d80feb1656d
More information about the pld-cvs-commit
mailing list