From dd878837ce598fd9d351ecb8e42be069323aad3c Mon Sep 17 00:00:00 2001 From: Christian Weissmann Date: Wed, 5 Jun 2024 13:16:23 +0200 Subject: [PATCH] fix: Slight adjustment for static code analysis --- citrineos/add-charger.sh | 12 ++++++------ demo-iso15118-2-ac-plus-ocpp.sh | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/citrineos/add-charger.sh b/citrineos/add-charger.sh index 5fe19f47..4671aeab 100755 --- a/citrineos/add-charger.sh +++ b/citrineos/add-charger.sh @@ -79,16 +79,16 @@ add_location() { # Function to add a charging station add_charging_station() { - local token=$1 - local location_id=$2 - local chargepointId=$3 + local token="$1" + local location_id="$2" + local chargepointId="$3" curl -s --request POST \ --url "${DIRECTUS_API_URL}/items/ChargingStations" \ --header "Authorization: Bearer $token" \ --header "Content-Type: application/json" \ --data '{ - "id": "'$chargepointId'", - "locationId": "'$location_id'" + "id": "'"$chargepointId"'", + "locationId": "'"$location_id"'" }' | tee /dev/tty && echo } @@ -112,7 +112,7 @@ add_cp001_password() { }, "variableAttribute": [ { - "value": "'$passwordString'" + "value": "'"$passwordString"'" } ], "variableCharacteristics": { diff --git a/demo-iso15118-2-ac-plus-ocpp.sh b/demo-iso15118-2-ac-plus-ocpp.sh index 62fba40c..24fe15d5 100755 --- a/demo-iso15118-2-ac-plus-ocpp.sh +++ b/demo-iso15118-2-ac-plus-ocpp.sh @@ -94,11 +94,11 @@ git clone --branch "${DEMO_BRANCH}" "${DEMO_REPO}" everest-demo if [[ "$DEMO_VERSION" != v1.6j && "$DEMO_CSMS" == meave ]]; then echo "Cloning MaEVe CSMS from ${MAEVE_REPO} into ${DEMO_DIR}/maeve-csms and starting it" - git clone ${MAEVE_REPO} maeve-csms + git clone "${MAEVE_REPO}" maeve-csms pushd maeve-csms || exit 1 - git reset --hard ${MAEVE_BRANCH} + git reset --hard "${MAEVE_BRANCH}" cp ../everest-demo/manager/cached_certs_correct_name_emaid.tar.gz . echo "Patching the CSMS to disable load balancer"