Skip to content

Commit

Permalink
fix(examples/yocto): shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldh committed Mar 30, 2021
1 parent 0ce54e8 commit dd3cac2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/yocto/postinst-intercepts/execute_dracut
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ echo -----------
env
echo -----------

[[ -d $DRACUT_TMPDIR ]] || mkdir -p $DRACUT_TMPDIR
[[ -d $DRACUT_TMPDIR ]] || mkdir -p "$DRACUT_TMPDIR"

# Execute depmod and dracut
echo "$(date) - RUNNING: depmod -b $D -a $MY_KERNEL_VERSION"
depmod -b $D -a $MY_KERNEL_VERSION
echo "dracut: $(dracut --sysroot $D --help | grep 'Version:')"
depmod -b "$D" -a "$MY_KERNEL_VERSION"
echo "dracut: $(dracut --sysroot "$D" --help | grep 'Version:')"
echo "$(date) - RUNNING: dracut -f --sysroot $D --tmpdir $DRACUT_TMPDIR $DRACUT_OPTS $DEBUGOPTS -k $D/lib/modules/$MY_KERNEL_VERSION $D/boot/initramfs.img $MY_KERNEL_VERSION"
dracut -f --sysroot $D --tmpdir $DRACUT_TMPDIR $DRACUT_OPTS $DEBUGOPTS -k $D/lib/modules/$MY_KERNEL_VERSION $D/boot/initramfs.img $MY_KERNEL_VERSION
dracut -f --sysroot "$D" --tmpdir "$DRACUT_TMPDIR" $DRACUT_OPTS $DEBUGOPTS -k "$D"/lib/modules/"$MY_KERNEL_VERSION" "$D"/boot/initramfs.img "$MY_KERNEL_VERSION"
echo "$(date) - DONE: dracut"

0 comments on commit dd3cac2

Please sign in to comment.