From 7f72dad9b84fd33d07983b484602a5c3f9272dba Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 18 Apr 2025 11:45:39 -0400 Subject: [PATCH] Update decrypt.sh --- .github/actions/decrypt.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/actions/decrypt.sh b/.github/actions/decrypt.sh index 0a166a6a..7e00a091 100755 --- a/.github/actions/decrypt.sh +++ b/.github/actions/decrypt.sh @@ -4,5 +4,16 @@ if [ ! -d "$credspath" ]; then echo "creating ${credspath}" mkdir -p "$credspath" fi - -echo -e "$oa2" > "${credspath}/oauth2.txt" +credsfile="${credspath}/oauth2.txt" +echo "$oa2" > "$credsfile" +echo "File size:" +wc -c "$credsfile" +echo "File type:" +file "$credsfile" +echo "Validation:" +jq -e . "$credsfile" > /dev/null +if [ $? -eq 0 ]; then + echo "Valid JSON" +else + echo "Invalid JSON" +fi