From 4a3eab634ecddd71ec82c0ffd6b75527b94a91f3 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 14 May 2023 23:35:12 +0200 Subject: [PATCH] do not allow to edit other themes than MBcolors in ~/.themes --- bin/colorizer-ob | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/colorizer-ob b/bin/colorizer-ob index 2b21e18..5a1f139 100755 --- a/bin/colorizer-ob +++ b/bin/colorizer-ob @@ -149,8 +149,7 @@ case "$LANG" in esac - -if [ -f "$THEMERC" ]; then +if [[ -f "$THEMERC" ]] && [[ "$OBTHEME" = "MBcolor"* ]]; then if [ ! -f "${THEMERC}.bak" ]; then cp ${THEMERC} ${THEMERC}.bak #check if lines, and add missing