commit | c336b873421c954921ee26c22bd9bfe65b330d0c | [log] [tgz] |
---|---|---|
author | Jaromir Wysoglad <jwysogla@redhat.com> | Wed Mar 27 11:36:26 2024 +0100 |
committer | Jaromir Wysoglad <jwysogla@redhat.com> | Fri Apr 12 08:37:49 2024 +0200 |
tree | 064b7401759a40604119d06c9e0bd12f15fea2be | |
parent | f4f09416ca8de09820b52599c7bcd2911b407466 [diff] |
Fix neutron empty string check The variable should be in quotes for the check to work Testing the behavior in bash: current behavior: $ config_file="" $ if [ -n ${config_file} ]; then echo a; fi a $ config_file="abc" $ if [ -n ${config_file} ]; then echo a; fi a behavior with quotes: $ config_file="" $ if [ -n "$config_file" ]; then echo a; fi $ config_file="abc" $ if [ -n "$config_file" ]; then echo a; fi a Change-Id: Iba956d9d4f43b925848174a632aabe58999be74b