wok-6.x diff slim/stuff/slim-theme @ rev 20892

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 09:14:07 2019 +0100 (2019-02-26)
parents 19477586b01f
children b77dd7187137
line diff
     1.1 --- a/slim/stuff/slim-theme	Sun Feb 12 04:43:38 2017 +0200
     1.2 +++ b/slim/stuff/slim-theme	Tue Feb 26 09:14:07 2019 +0100
     1.3 @@ -44,7 +44,7 @@
     1.4  {
     1.5  	cd /usr/share/slim/themes
     1.6  	theme=$(ls -Ad $1 2>/dev/null | head -n1)
     1.7 -	[ x$theme == x ] && echo "Theme \"$1\" not exist!" >&2 && exit 1
     1.8 +	[ x$theme = x ] && echo "Theme \"$1\" not exist!" >&2 && exit 1
     1.9  	echo $theme
    1.10  }
    1.11  i18n()
    1.12 @@ -89,9 +89,9 @@
    1.13  	curr=$(get_current)
    1.14  	prev=$(get_prev)
    1.15  	echo "Forget theme \"$theme\"" >&2
    1.16 -	if [ x$theme == x$curr ]; then
    1.17 -		last=$(echo $prev | cut -d: -f1); [ x$last == x ] && last=base
    1.18 -		rest=${prev#*:}; [ x$rest == x$prev ] && rest=
    1.19 +	if [ x$theme = x$curr ]; then
    1.20 +		last=$(echo $prev | cut -d: -f1); [ x$last = x ] && last=base
    1.21 +		rest=${prev#*:}; [ x$rest = x$prev ] && rest=
    1.22  		prev=$rest; set_prev $prev
    1.23  		echo "Back to \"$last\" theme" >&2
    1.24  		set_current $last
    1.25 @@ -124,7 +124,7 @@
    1.26  	T)
    1.27  		i18n $OPTARG; exit 0 ;;
    1.28  	*)
    1.29 -		if [ x$OPTARG == xs -o x$OPTARG == xf -o x$OPTARG == xT ]; then
    1.30 +		if [ x$OPTARG = xs -o x$OPTARG = xf -o x$OPTARG = xT ]; then
    1.31  			echo "Option \"$OPTARG\" requires an argument."
    1.32  		else
    1.33  			[ x$OPTARG != x ] && echo "Illegal option \"$OPTARG\"."