Build: fix shellcheck (#53602)

This commit is contained in:
malcolmholmes 2022-08-11 16:13:41 +01:00 committed by GitHub
parent a31d96d20a
commit 0ac85c8169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,10 +21,10 @@ while IFS=" " read -r -a package; do
fi
# Extract the npm package tarballs into separate directories e.g. ./base/@grafana-data.tgz -> ./base/grafana-data/
mkdir $PREV
tar -xf ./base/@$PACKAGE_PATH.tgz --strip-components=1 -C $PREV
mkdir $CURRENT
tar -xf ./pr/@$PACKAGE_PATH.tgz --strip-components=1 -C $CURRENT
mkdir "$PREV"
tar -xf "./base/@$PACKAGE_PATH.tgz" --strip-components=1 -C "$PREV"
mkdir "$CURRENT"
tar -xf "./pr/@$PACKAGE_PATH.tgz" --strip-components=1 -C "$CURRENT"
# Run the comparison and record the exit code
echo ""
@ -52,4 +52,4 @@ echo "::set-output name=is_breaking::$EXIT_CODE"
echo "::set-output name=message::$GITHUB_MESSAGE"
# We will exit the workflow accordingly at another step
exit 0
exit 0