From aa6851fe2a94b2182e2dc1ee9806a97b1be67d4b Mon Sep 17 00:00:00 2001 From: forkimenjeckayang Date: Thu, 12 Sep 2024 09:22:28 +0100 Subject: [PATCH] Enhanced export script to remove modified json file --- config/export_kc_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/export_kc_config.sh b/config/export_kc_config.sh index e725e43..5f8f246 100755 --- a/config/export_kc_config.sh +++ b/config/export_kc_config.sh @@ -47,5 +47,5 @@ java -jar target/$KC_CLI_JAR_FILE \ --import.files.locations="$MODIFIED_REALM_JSON" || { echo "Failed to run the JAR file"; exit 1; } echo "Script completed successfully." -#Removing MODIFIED_REALM_JSON form memory -unset MODIFIED_REALM_JSON \ No newline at end of file +# If everything is successful, delete the modified realm file +rm -f "$MODIFIED_REALM_JSON"