Skip to content

Commit

Permalink
use strict POSIX shell syntax (Infra) (#788)
Browse files Browse the repository at this point in the history
use strict POSIX shell syntax

Signed-off-by: Maciej Kisielewski <maciej.kisielewski@canonical.com>
  • Loading branch information
kissiel authored Oct 24, 2023
1 parent 3527965 commit 1af4bcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checkbox-snap-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
git rev-list --abbrev-commit --pretty=oneline HEAD --not $(git rev-list -n1 --before="24 hours" --first-parent HEAD) -- checkbox-ng checkbox-support providers checkbox-core-snap checkbox-snap
changes=$(git rev-list --abbrev-commit --pretty=oneline HEAD --not $(git rev-list -n1 --before="24 hours" --first-parent HEAD) -- checkbox-ng checkbox-support providers checkbox-core-snap checkbox-snap)
if [[ -z $changes ]]
if [ -z $changes ]
then
echo "should_run=false" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -86,8 +86,8 @@ jobs:
for snap in checkbox-snap/series_${{ matrix.type }}${{ matrix.releases }}/*.snap ; \
do \
echo "Uploading $snap..." ; \
if [[ ${{ matrix.type }} == 'classic' ]]; then \
if [[ ${{ matrix.releases }} == '22' ]]; then \
if [ ${{ matrix.type }} = 'classic' ]; then \
if [ ${{ matrix.releases }} = '22' ]; then \
snapcraft upload $snap --release ${{ matrix.releases }}.04/edge,latest/edge ; \
else \
snapcraft upload $snap --release ${{ matrix.releases }}.04/edge ; \
Expand Down

0 comments on commit 1af4bcc

Please sign in to comment.