Skip to content

Commit

Permalink
fix shellcheck on test preseed-lxd
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocazzolato committed Oct 5, 2024
1 parent 7172083 commit f21aa90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/main/preseed-lxd/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ execute: |
# sure all the dependencies are in place, otherwise it fails to access to
# /snap/snapd/current/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
CURRENT_SNAPD_SNAP="$(ls $SNAPD_WORK_DIR/snapd_snap/snapd_*.snap)"
CURRENT_SNAPD_SNAP_NAME="$(basename $CURRENT_SNAPD_SNAP)"
if [ "$(wc -w <<< $CURRENT_SNAPD_SNAP)" != 1 ]; then
CURRENT_SNAPD_SNAP="$(ls "$SNAPD_WORK_DIR"/snapd_snap/snapd_*.snap)"
CURRENT_SNAPD_SNAP_NAME="$(basename "$CURRENT_SNAPD_SNAP")"
if [ "$(wc -w <<< "$CURRENT_SNAPD_SNAP")" != 1 ]; then
echo "It is expected just 1 snapd snap in $SNAPD_WORK_DIR/snapd_snap"
exit 1
fi
Expand Down

0 comments on commit f21aa90

Please sign in to comment.