mirror of
https://github.com/GAM-team/GAM.git
synced 2025-05-11 11:47:21 +00:00
Update decrypt.sh
This commit is contained in:
parent
c866d2f4ab
commit
7f72dad9b8
15
.github/actions/decrypt.sh
vendored
15
.github/actions/decrypt.sh
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user