From bdccd244c4c28f846403ce08e63cf6c910b7e9ce Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sun, 25 Jul 2021 09:35:54 +0200 Subject: [PATCH] Fix sxmo_migrate.sh colorisation busybox less cannot display colors. As we use the -F arg to stop less if the page fit in one screen, we can just use more without arguments. Both behave the same but more god color capabilities. Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_migrate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_migrate.sh b/scripts/core/sxmo_migrate.sh index 268c4c5..b762cdb 100644 --- a/scripts/core/sxmo_migrate.sh +++ b/scripts/core/sxmo_migrate.sh @@ -19,7 +19,7 @@ resolvedifference() { ( printf "\e[31mThe file \e[32m%s\e[31m differs\e[0m\n" "$userfile" smartdiff -ud "$userfile" "$defaultfile" - ) | less -RF + ) | more printf "\e[33mDo you want to apply the default? [y/N], or perhaps open an editor [e]?\e[0m " read -r reply < /dev/tty