mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added a bit of protection in case logic is wrong
This commit is contained in:
parent
ddd3258580
commit
9e5426b180
1
inxi
1
inxi
|
@ -914,6 +914,7 @@ select_default_color_scheme()
|
|||
echo "$config_variable=$user_selection" >> $config_file
|
||||
else
|
||||
print_screen_output "Updating config file for $COLOR_SELECTION color scheme now..."
|
||||
touch $config_file # just in case of logic error above
|
||||
sed -i "s/$config_variable=.*/$config_variable=$user_selection/" $config_file
|
||||
fi
|
||||
# file exists now so we can go on to cleanup
|
||||
|
|
Loading…
Reference in a new issue