Commit f6dbba2
committed
A couple more script tweaks for clarity
- Because the substitition string after the hyphen is empty,
"${VIRTUAL_ENV:-}" and "${VIRTUAL_ENV-}" have the same effect.
However, the latter, which this changes it to, expresses the
correct idea that the special case being handled is when the
variable is unset: in this case, we expand an empty field rather
than triggering an error due to set -u. When the variable is set
but empty, it already expands to the substitution value, and
including that in the special case with ":" is thus misleading.
- Continuing in the vein of d18d90a (and 1e0b3f9), this removes
another explicit newline by adding another echo command to print
the leading blank line before the table.1 parent c7cdaf4 commit f6dbba2
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments