Skip to content

Commit

Permalink
shellcheck: fix errors
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Croce <[email protected]>
  • Loading branch information
teknoraver authored and danielocfb committed Oct 27, 2022
1 parent afacd04 commit 4f86562
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helpers.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

# $1 - start or end
# $2 - fold identifier, no spaces
# $3 - fold section description
Expand Down
2 changes: 1 addition & 1 deletion prepare-rootfs/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ chmod 644 /exitstatus
HERE
# Create the init scripts.
if [[ ! -z SETUPCMD ]]; then
if [[ -n $SETUPCMD ]]; then
# Unescape whitespace characters.
setup_cmd=$(sed 's/\(\\\)\([[:space:]]\)/\2/g' <<< "${SETUPCMD}")
kernel="${KERNELRELEASE}"
Expand Down

0 comments on commit 4f86562

Please sign in to comment.