refactor: machine_type to avoid non posix function declarations #364
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#364
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
7dd2d1025a/cdist/conf/explorer/machine_type
if you search for
() (
you will find 5 resultsaccording to this source [1], they say
hence, a refactor would be needed in the
machine_type
to avoid non posix function declarations[1] https://stackoverflow.com/questions/27801932/bash-functions-enclosing-the-body-in-braces-vs-parentheses
I suggest to reach out to Dennis, as he mixed {} and () functions, both which technically are correct due to the compound, but he might have had a motivation for potentially keeping x local or so.