From 2efb7970b767f45940c6265bf40a070decb8bb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EC=2EK=C3=B6del=20=28Mac=29?= Date: Wed, 7 Dec 2022 17:00:35 -0300 Subject: [PATCH] Security fix for release.sh --- release.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index a246e7c..faa7d5c 100755 --- a/release.sh +++ b/release.sh @@ -1,7 +1,11 @@ #!/bin/bash -export APPLE_ID="" -export APPLE_ID_PASSWORD="" +if [[ -z $APPLE_ID]] +then + export APPLE_ID="" + export APPLE_ID_PASSWORD="" + export APPLE_ID_SET="TRUE" +fi yarn clean rm -rf ./node_modules ./dist @@ -15,5 +19,10 @@ then codesign -s - --deep --force ./dist/mac-universal/Razer\ macOS.app fi -unset APPLE_ID -unset APPLE_ID_PASSWORD +if [[ -z $APPLE_ID_SET]] +then; +else + unset APPLE_ID + unset APPLE_ID_PASSWORD + unset APPLE_ID_SET +fi