bash variables in uppercase

This commit is contained in:
gwen 2024-09-10 12:32:04 +02:00
parent 0b343f82d8
commit 13be703d81

View file

@ -51,7 +51,7 @@ class RougailUserDataEnvironment:
else:
self.errors = []
self.warnings = []
# FIXME à enlever
# FIXME a enlever
# this variable will be used for generating warnings
# about unused ROUGAIL_ environment variables
self.unused_environment_var = get_rougail_environment_var()
@ -79,8 +79,9 @@ class RougailUserDataEnvironment:
self.load_environment(option)
def load_environment(self, option):
# FIXME : mettre un .upper() pour que les var de env soient en maj
option_name = option.path()
# the bash variable are in upper case
option_name = option_name.upper()
# FIXME : A REFAIRE
# this is used only for warning purposes
if option_name not in self.unused_environment_var: