You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by st...@apache.org on 2020/10/07 01:00:03 UTC
[openwhisk-release] branch master updated: Add a flag to remove the
temporal directory. (#349)
This is an automated email from the ASF dual-hosted git repository.
style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-release.git
The following commit(s) were added to refs/heads/master by this push:
new 86b9f57 Add a flag to remove the temporal directory. (#349)
86b9f57 is described below
commit 86b9f574c535a436a6be116f366abbb2a5cd42c5
Author: Dominic Kim <do...@navercorp.com>
AuthorDate: Wed Oct 7 09:59:53 2020 +0900
Add a flag to remove the temporal directory. (#349)
* Add a flag to remove the temporal directory.
* Add else statement
* Apply comment
---
tools/rcverify.sh | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/tools/rcverify.sh b/tools/rcverify.sh
index d392a87..5ec52a2 100755
--- a/tools/rcverify.sh
+++ b/tools/rcverify.sh
@@ -38,6 +38,9 @@ V=${3?"missing version e.g., '3.19.0'"}
# the release candidate, usualy 'rc1'
RC=${4:-rc1}
+# the last argument is optional and if set to 'cleanup', the script deletes the scratch space at completion
+REMOVE_DIR=${5:-cleanup}
+
# set to non-zero to download the artifacts to verify, this is the default
DL=${DL:-1}
@@ -212,7 +215,15 @@ packageJsonCheckVersion "$DIR/$BASE/package.json" $V
printf "scanning package-lock.json for version match..."
packageJsonCheckVersion "$DIR/$BASE/package-lock.json" $V
-echo $(tput setaf 6)
-echo run the following command to remove the scratch space:
-echo " rm -rf '$DIR'"
-echo $(tput sgr0)
+if [ "$REMOVE_DIR" = "cleanup" ]; then
+ echo "the flag to remove the working directory is enabled"
+ printf "removing the scratch space($(tput setaf 6)$DIR$(tput sgr0))..."
+ rm -rf $DIR
+ printf " $(tput setaf 2)done\n$(tput sgr0)"
+else
+ echo "the flag to remove the working directory is disabled"
+ echo $(tput setaf 6)
+ echo run the following command to remove the scratch space:
+ echo " rm -rf '$DIR'"
+ echo $(tput sgr0)
+fi