From 570457e70f19f91296a124336c80563370b4ed99 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sat, 5 Oct 2024 22:43:28 +0200 Subject: [PATCH] Fix SC2086 Signed-off-by: Jonathan Schwender --- install_ohos_sdk.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_ohos_sdk.sh b/install_ohos_sdk.sh index 78b80c3..a0d922c 100755 --- a/install_ohos_sdk.sh +++ b/install_ohos_sdk.sh @@ -50,14 +50,14 @@ else fi IFS=";" read -ra COMPONENTS <<< "${INPUT_COMPONENTS}" -for COMPONENT in ${COMPONENTS[@]} +for COMPONENT in "${COMPONENTS[@]}" do echo "Extracting component ${COMPONENT}" - unzip ${COMPONENT}-*.zip - API_VERSION=$(cat ${COMPONENT}/oh-uni-package.json | jq -r '.apiVersion') + unzip "${COMPONENT}"-*.zip + API_VERSION=$(cat "${COMPONENT}/oh-uni-package.json" | jq -r '.apiVersion') if [ "$INPUT_FIXUP_PATH" = "true" ]; then - mkdir -p ${API_VERSION} - mv ${COMPONENT} "${API_VERSION}/" + mkdir -p "${API_VERSION}" + mv "${COMPONENT}" "${API_VERSION}/" fi done rm ./*.zip