You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ta...@apache.org on 2020/01/15 20:55:39 UTC
[openwhisk-release] 01/01: Tweak rcverify script to accept mime
type "application/json" that is now identified by Catalina
This is an automated email from the ASF dual-hosted git repository.
tardieu pushed a commit to branch rcverify-json
in repository https://gitbox.apache.org/repos/asf/openwhisk-release.git
commit e1dffb3a864bc85d83101d6dbd5411ab4b177a73
Author: Olivier Tardieu <ta...@users.noreply.github.com>
AuthorDate: Wed Jan 15 15:55:13 2020 -0500
Tweak rcverify script to accept mime type "application/json" that is now identified by Catalina
---
tools/rcverify.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/rcverify.sh b/tools/rcverify.sh
index 7436e08..98c3740 100755
--- a/tools/rcverify.sh
+++ b/tools/rcverify.sh
@@ -175,8 +175,13 @@ EXE=$(find "$DIR/$BASE" -type f ! -name "*.sh" ! -name "*.sh" ! -name "*.py" ! -
validate "$EXE" "" "$EXE"
printf "scanning for unexpected file types..."
-EXE=$(find "$DIR/$BASE" -type f -and -not -empty -exec file --mime {} \; | grep -v ": text/" | grep -v ": image/")
+EXE=$(find "$DIR/$BASE" -type f -and -not -empty -exec file --mime {} \; | grep -v ": text/" | grep -v ": image/" | grep -v ": application/json")
validate "$EXE" "" "$EXE"
+echo
+echo
+echo $EXE
+echo
+echo
printf "scanning for archives..."
EXE=$(find "$DIR/$BASE" -type f -name "*.tar" -name "*.tgz" -o -name "*.gz" -o -name ".zip" -o -name "*.jar")