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 <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 3 years ago committed by Maarten van Gompel
parent 6dce18e579
commit bdccd244c4
  1. 2
      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

Loading…
Cancel
Save