Skip to content

Commit

Permalink
fix shellcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Jul 1, 2024
1 parent f4df7e6 commit 774a0ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# actually perform the upgrade, using UPGRADEBIN (set in /etc/conf.d)

warn() {
echo $@
echo "$@"
}

get_rhel_major_release() {
Expand Down Expand Up @@ -317,7 +317,7 @@ save_journal() {
# during the kernel-core rpm postscript.
# the result is ro-bind-mounted over /proc/cmdline inside the container.
awk '{print $1}' /proc/cmdline \
| xargs -I@ echo @ $(cat ${NEWROOT}/var/lib/leapp/.fakerootfs) \
| xargs -I@ echo @ $(cat "${NEWROOT}"/var/lib/leapp/.fakerootfs) \

Check warning

Code scanning / shellcheck

SC2046 Warning

Quote this to prevent word splitting.
> ${NEWROOT}/var/lib/leapp/.fakecmdline

##### do the upgrade #######
Expand Down

0 comments on commit 774a0ab

Please sign in to comment.