Skip to content

Commit

Permalink
Fix config variable expansion when key/value is missing or not a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomthom committed Feb 13, 2023
1 parent dabfc02 commit e32a68c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/testup/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def self.read_config_file(ci_config_path)
# Expand config variables.
['Path', 'Output', 'LogPath', 'SavedRunsPath'].each { |key|
value = config[key]
next unless value.is_a?(String)

value.gsub!('%CONFIG_DIR%', config_dir)
}
config
Expand Down

0 comments on commit e32a68c

Please sign in to comment.