From f52541ffea9ca1b571b2fc8690e3ea02d3f0a893 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 6 May 2020 16:49:26 +0200 Subject: [PATCH] Fixed: Escaped delimter for sed to fix config not saving "/" character --- bashtop | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bashtop b/bashtop index e959d7f..2c8378c 100755 --- a/bashtop +++ b/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