Skip to content

Commit 81eec55

Browse files
committed
firstboot: Use ':' for no-op command
Previously, shellcheck would warn: In eos-firstboot line 9: > /var/lib/eos-firstboot ^----------------------^ SC2188 (warning): This redirection doesn't have a command. Move to its command (or use 'true' as no-op). For more information: https://www.shellcheck.net/wiki/SC2188 -- This redirection doesn't have a c... This is intended to catch cases where the redirect was meant to apply to the command on the line before. In this case the usage is correct. Use `:`, which means the same as the `true` builtin: do nothing, successfully, with no output.
1 parent 7bcb5c9 commit 81eec55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eos-firstboot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ root_part=$(findmnt -rvnf -o SOURCE /)
66

77
resize2fs "${root_part}"
88

9-
> /var/lib/eos-firstboot
9+
: > /var/lib/eos-firstboot
1010
exit 0

0 commit comments

Comments
 (0)