mirror of https://github.com/aristocratos/bashtop
Fixed: Escaped delimter for sed to fix config not saving "/" character
parent
f29397a212
commit
f52541ffea
2
bashtop
2
bashtop
|
@ -578,6 +578,8 @@ save_config() { #? Saves variables to config file if not same, usage: save_confi
|
|||
if [[ ${tmp_value//\"/} != "${!var}" ]]; then
|
||||
original="${var}=${tmp_value}"
|
||||
new="${var}=\"${!var}\""
|
||||
original="${original//'/'/'\/'}"
|
||||
new="${new//'/'/'\/'}"
|
||||
sed -i "s/${original}/${new}/" "${config_file}"
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue