Skip to content

Commit

Permalink
fix(lsinitrd.sh): fix shellcheck issues
Browse files Browse the repository at this point in the history
SC2086
SC2164

Related: RHEL-43460
  • Loading branch information
pvalena committed Jul 27, 2024
1 parent 7b886d9 commit 6bcfe67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lsinitrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ list_squash_content() {
erofs-root.img)
mkdir -p "$EROFS_TMPMNT"
mount -t erofs "$SQUASH_TMPFILE" "$EROFS_TMPMNT"
(cd $EROFS_TMPMNT; find "$EROFS_TMPMNT" -ls)
(
cd "$EROFS_TMPMNT" || exit 1
find "$EROFS_TMPMNT" -ls
)
umount "$EROFS_TMPMNT"
;;
esac
Expand Down

0 comments on commit 6bcfe67

Please sign in to comment.