Skip to content

Commit

Permalink
Fix SC2086
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Oct 6, 2024
1 parent 8a5536a commit 659227c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install_ohos_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 659227c

Please sign in to comment.