Skip to content

Commit b6a612a

Browse files
committed
Cosmetic: Use [[...]] istead of [...]
Signed-off-by: Günter Neiß <gneiss@web.de>
1 parent 0ff6bfd commit b6a612a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/LinuxBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
TAG_List=$(gh release list -R "$GITHUB_REPOSITORY" --json tagName | jq -r 'map(select(true))[] | (.tagName)')
9494
TAG="$(date +%Y%m%d)"
9595
for i in $TAG_List; do
96-
if [ "$i" = "$TAG" ]; then
96+
if [[ "$i" = "$TAG" ]]; then
9797
gh release delete "$TAG" -y
9898
fi
9999
done

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ jobs:
369369
working-directory: ${{ matrix.config.working-directory || './' }}
370370
run: |
371371
# See: https://www.electron.build/code-signing
372-
if [ $CAN_SIGN = false ] || [ $IS_WINDOWS_CONFIG = true ]; then
372+
if [[ $CAN_SIGN = false ]] || [[ $IS_WINDOWS_CONFIG = true ]]; then
373373
echo "Skipping the app signing: certificate not provided."
374374
else
375375
export CSC_LINK="${{ runner.temp }}/signing_certificate.${{ matrix.config.certificate-extension }}"
@@ -544,11 +544,11 @@ jobs:
544544
run: |
545545
export LATEST_TAG=$(git describe --abbrev=0)
546546
export GIT_LOG=$(git log --pretty=" - %s [%h]" $LATEST_TAG..HEAD | sed 's/ *$//g')
547-
if [ "$IS_RELEASE" = true ]; then
547+
if [[ "$IS_RELEASE" = true ]]; then
548548
export BODY=$(echo -e "$GIT_LOG")
549549
else
550550
export LATEST_TAG_WITH_LINK=$(echo "[$LATEST_TAG](https://github.com/arduino/arduino-ide/releases/tag/$LATEST_TAG)")
551-
if [ -z "$GIT_LOG" ]; then
551+
if [[ -z "$GIT_LOG" ]]; then
552552
export BODY="There were no changes since version $LATEST_TAG_WITH_LINK."
553553
else
554554
export BODY=$(echo -e "Changes since version $LATEST_TAG_WITH_LINK:\n$GIT_LOG")

.github/workflows/upstream-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
BASE=$(git merge-base HEAD upstream/main)
2929
DIFF_FILES=$(git diff --name-only $BASE upstream/main | grep -Ev '^(\.github/|\.git/|^[^/]+$)' || true)
3030
echo "DIFF_FILES: $DIFF_FILES"
31-
if [ -z "$DIFF_FILES" ]; then
31+
if [[ -z "$DIFF_FILES" ]]; then
3232
echo "❌ Only ignored files changed. Exiting."
3333
echo "skip=true" >> $GITHUB_OUTPUT
3434
else

0 commit comments

Comments
 (0)