fix: an /etc/appname without a trailing newline still names the appliance #20
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/keel-core!20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/appname-no-newline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
00-keel-bannerread/etc/appnamewithread -r name < "$KEEL_APPNAME_FILE" || name="".readexits non-zero on a last line with no newline even though it read it, so such a file produced an empty name. It is now|| [ -n "$name" ].Test plan
tests/banner.bats: two new tests run the drop-in itself with an appname file with and without a trailing newline. The second failed before the fix and passes after it. 98/98 pass.