Skip to content

Commit d499778

Browse files
committed
Fix access to unbound var in tw_config
1 parent cb5fe0e commit d499778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/include/tw_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function twcfg.check_syntax_line() {
165165

166166
function twcfg.include_exec() {
167167
local config="$1"
168-
local check_syntax="$2"
168+
local check_syntax="${2:-}"
169169
twcfg.check_cfg
170170
if [ ! -f "$config" ]
171171
then

0 commit comments

Comments
 (0)