-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Description
the modules are full of default-assignments like so:
CustomPiOS/src/modules/base/config
Line 13 in f6fea14
| [ -n "$BASE_IMAGE_RASPBIAN" ] || BASE_IMAGE_RASPBIAN=yes |
this is obviously not a bug, but i think the readability could be improved by using POSIX parameter expansion.
the following is equivalent to the test-clause above:
: ${BASE_RELEASE_COMPRESS:=yes}from the bash manpage:
${parameter:=word}Assign Default Values. If parameter is unset or null, the expansion of word is assigned to parameter. The value of parameter is then substituted. Positional parameters and special parameters may not be assigned to in this way.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels