This is an automated email from the ASF dual-hosted git repository.
sciabarracom pushed a commit to branch 0.1.0
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to refs/heads/0.1.0 by this push:
new f7613cf prereq fix zip
f7613cf is described below
commit f7613cfc0f6fa028287581504519c2d1cdc3089f
Author: Trustable User <[email protected]>
AuthorDate: Tue Aug 18 20:17:47 2026 +0200
prereq fix zip
---
prereq.yml | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/prereq.yml b/prereq.yml
index 38c74e8..8322817 100644
--- a/prereq.yml
+++ b/prereq.yml
@@ -290,20 +290,23 @@ tasks:
cmds:
- |
case "{{.OS}}-{{.ARCH}}" in
- darwin-*) ln -sf /usr/bin/zip zip ;;
- linux-*)
+ darwin-* | linux-*)
cat >zip <<EOF
- #!/bin/bash
- if test -x /bin/zip -o -x /usr/bin/zip -o -x /usr/local/bin/zip
- then rm "\$0" ; exec zip "\$@"
- else echo "Please install zip in your system." ; exit 1
- fi
+ #!/bin/sh
+ for ZIP in /bin/zip /usr/bin/zip /usr/local/bin/zip
+ do
+ if test -x "\$ZIP"
+ then exec "\$ZIP" "\$@"
+ fi
+ done
+ echo "Please install zip in your system."
+ exit 1
EOF
executable zip
;;
windows-*)
- curl -sL "{{.ZIP_EXE}}" -o zip.exe
- executable zip.exe
+ curl -sL "{{.ZIP_EXE}}" -o zip.exe
+ executable zip.exe
;;
esac