From 2e7d70b5dbda0e03653ffd35db5f466ca1a1da05 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Fri, 4 Aug 2023 09:16:56 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Handle=20updated=20patch=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-artifact.yml | 6 +++--- apks/options.json | 2 +- apks/populate_client_id.sh | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-artifact.yml b/.github/workflows/build-artifact.yml index eb522f7..ebdcda2 100644 --- a/.github/workflows/build-artifact.yml +++ b/.github/workflows/build-artifact.yml @@ -55,7 +55,7 @@ jobs: json_data=$(cat "${path}") new_object='{ - "patchName": "Change OAuth client id", + "patchName": "Spoof client", "options": [ { "key": "client-id", @@ -63,8 +63,8 @@ jobs: } ] }' - # Check if an object with the patchName "Change OAuth client id" already exists - existing_object_index=$(echo "${json_data}" | jq 'map(.patchName) | index("Change OAuth client id")') + # Check if an object with the patchName "Spoof client" already exists + existing_object_index=$(echo "${json_data}" | jq 'map(.patchName) | index("Spoof client")') echo "${existing_object_index}" if [[ ${existing_object_index} != "null" ]]; then echo "Patch entry already exists. Overriding client ID in it." diff --git a/apks/options.json b/apks/options.json index bc352b2..41b8478 100644 --- a/apks/options.json +++ b/apks/options.json @@ -1,6 +1,6 @@ [ { - "patchName": "Change OAuth client id", + "patchName": "Spoof client", "options": [ { "key": "client-id", diff --git a/apks/populate_client_id.sh b/apks/populate_client_id.sh index a940d3e..5adb1b6 100644 --- a/apks/populate_client_id.sh +++ b/apks/populate_client_id.sh @@ -6,7 +6,7 @@ path="apks/options.json" json_data=$(cat "${path}") new_object='{ -"patchName": "Change OAuth client id", +"patchName": "Spoof client", "options": [ { "key": "client-id", @@ -14,8 +14,8 @@ new_object='{ } ] }' -# Check if an object with the patchName "Change OAuth client id" already exists -existing_object_index=$(echo "${json_data}" | jq 'map(.patchName) | index("Change OAuth client id")') +# Check if an object with the patchName "Spoof client" already exists +existing_object_index=$(echo "${json_data}" | jq 'map(.patchName) | index("Spoof client")') echo "${existing_object_index}" if [[ ${existing_object_index} != "null" ]]; then echo "Exist"