tazinst diff installer.cgi @ rev 98

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:29:08 2019 +0100 (2019-02-26)
parents 494ae7666b3e
children d41f08c53b3e
line diff
     1.1 --- a/installer.cgi	Thu Oct 05 15:28:38 2017 +0300
     1.2 +++ b/installer.cgi	Tue Feb 26 08:29:08 2019 +0100
     1.3 @@ -285,7 +285,7 @@
     1.4  		"$media" \
     1.5  		"$(_ 'Select a SliTaz ISO file located on a local disk')"
     1.6  	error="$?"
     1.7 -	if [ "$media" == "iso" ]; then
     1.8 +	if [ "$media" = "iso" ]; then
     1.9  		input "text" \
    1.10  			"src_iso" \
    1.11  			"$source" "" \
    1.12 @@ -313,7 +313,7 @@
    1.13  		"$(_ 'Select a SliTaz version on the Web')"
    1.14  	error="$?"
    1.15  
    1.16 -	if [ "$media" == "web" ]; then
    1.17 +	if [ "$media" = "web" ]; then
    1.18  		input "text" \
    1.19  			"src_web" \
    1.20  			"$source" "" \
    1.21 @@ -338,7 +338,7 @@
    1.22  	local root_uuid="$(/usr/sbin/tazinst get root_uuid "$INSTFILE")"
    1.23  	local mode="$(/usr/sbin/tazinst get mode "$INSTFILE")"
    1.24  	comment "root_uuid selection"
    1.25 -	if [ "$mode" == "upgrade" ]; then
    1.26 +	if [ "$mode" = "upgrade" ]; then
    1.27  		label "root_uuid" \
    1.28  			"$(_ 'Existing SliTaz partition to upgrade:')" \
    1.29  			"$(_ 'Specify the partition containing the system to upgrade')"
    1.30 @@ -671,7 +671,7 @@
    1.31  	/usr/sbin/tazinst set winboot "$(GET WINBOOT)" "$INSTFILE"
    1.32  
    1.33  	# bootloader
    1.34 -	if [ "$(GET BOOTLOADER)" == "auto" ]; then
    1.35 +	if [ "$(GET BOOTLOADER)" = "auto" ]; then
    1.36  		/usr/sbin/tazinst set bootloader "auto" "$INSTFILE"
    1.37  	else
    1.38  		/usr/sbin/tazinst unset bootloader "$INSTFILE"
    1.39 @@ -970,7 +970,7 @@
    1.40  
    1.41  label_media() {
    1.42  	local id="$1" label="$2" media="$3" title="$4" retcode=0
    1.43 -	if [ "$media" == "$id" ]; then
    1.44 +	if [ "$media" = "$id" ]; then
    1.45  		label "source" \
    1.46  			"$label" \
    1.47  			"$title" \
    1.48 @@ -1033,7 +1033,7 @@
    1.49  	printf '<input type="%s" id="%s" list="list_%s" ' "$type" "$name" "$name"
    1.50  	printf 'name="%s" class="%s" ' "$(printf $name | tr [a-z] [A-Z])" "$type"
    1.51  	[ "$value" ] && printf 'value="%s" ' "$value"
    1.52 -	[ "$value" == "$selected" ] && printf '%s' "checked "
    1.53 +	[ "$value" = "$selected" ] && printf '%s' "checked "
    1.54  	[ "$action" ] && printf \
    1.55  		'onInput="document.getElementById(%s).checked = true;" ' "'$action'"
    1.56  	[ "$help" ] && printf 'placeholder="%s" />\n' "$help" || echo "/>"
    1.57 @@ -1043,7 +1043,7 @@
    1.58  {
    1.59  	local id="$1" media="$2"
    1.60  	printf '<input type="radio" name="MEDIA" value="%s" id="%s" ' "$id" "$id"
    1.61 -	[ "$media" == "$id" ] && echo 'checked />' || echo '/>'
    1.62 +	[ "$media" = "$id" ] && echo 'checked />' || echo '/>'
    1.63  }
    1.64  
    1.65  input_hidden()