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>
This commit is contained in:
Stacy Harper 2021-07-25 09:35:54 +02:00 committed by Maarten van Gompel
parent 6dce18e579
commit bdccd244c4

View file

@ -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