Commit 8c922e1
Sean Thomas
Fix unbound variable error in migrate-s3-locking script
The --reinit flag crashes with "unbound variable" when a module has
no matching .tfvars file, because bash nounset treats an empty array
expansion as unbound. Use the ${arr[@]+...} idiom to safely expand.1 parent 8c3b34b commit 8c922e1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments