This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to refs/heads/main by this push:
new ca1fc17 skip update cli
ca1fc17 is described below
commit ca1fc174c95b779d0796a979b7362d6be6f5280b
Author: Michele Sciabarra <[email protected]>
AuthorDate: Wed Aug 7 16:04:03 2024 +0200
skip update cli
---
util/opsfile.yml | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/util/opsfile.yml b/util/opsfile.yml
index 1e6f10a..cc55597 100644
--- a/util/opsfile.yml
+++ b/util/opsfile.yml
@@ -18,7 +18,7 @@ tasks:
update-cli:
desc: update CLI
- silent: false
+ silent: true
vars:
BASE: "https://github.com/apache/openserverless-cli/releases/download"
VER:
@@ -32,9 +32,14 @@ tasks:
cd "$OPS_TMP"
extract "{{.FILE}}" "ops{{.EXE}}"
- |
- if rename "$OPS_TMP/ops{{.EXE}}" "$OPS_CMD"
- then echo "ops updated!"
- else echo "cannot update ops - please execute 'ops util update-cli' as
an administrator"
+ if test -z "$OPS_SKIP_UPDATE_CLI"
+ then
+ if rename "$OPS_TMP/ops{{.EXE}}" "$OPS_CMD"
+ then echo "ops updated!"
+ else echo "cannot update ops - please execute 'ops util update-cli' as
an administrator"
+ fi
+ else
+ echo "skipping rename $OPS_TMP/{{.EXE}} $OPS_CMD"
fi