tazinst diff tazinst @ rev 98

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:29:08 2019 +0100 (2019-02-26)
parents cf56992b574f
children 1547b72da276
line diff
     1.1 --- a/tazinst	Fri Sep 29 08:45:28 2017 +0200
     1.2 +++ b/tazinst	Tue Feb 26 08:29:08 2019 +0100
     1.3 @@ -85,7 +85,7 @@
     1.4  
     1.5  # predefined iso (key:url:help)
     1.6  SLITAZ_VERSION="${SLITAZ_VERSION:-cooking}"
     1.7 -[ "$SLITAZ_VERSION" == 'cooking' ] && SLITAZ_VERSION="$(($(date "+%y")-8)).0"
     1.8 +[ "$SLITAZ_VERSION" = 'cooking' ] && SLITAZ_VERSION="$(($(date "+%y")-8)).0"
     1.9  [ -n "$URL_ISO" ] && readonly LST_WEB="$URL_ISO" || readonly LST_WEB="
    1.10  stable:iso/stable/slitaz-$SLITAZ_VERSION.iso \
    1.11  :$(_ 'Stable release') $SLITAZ_VERSION
    1.12 @@ -495,7 +495,7 @@
    1.13  {
    1.14  	local setting="$1" value="$(get $1)" found=0 partition msg
    1.15  	for partition in $(list_uuid); do
    1.16 -		[ "$partition" == "$value" ] && found="$(($found + 1))"
    1.17 +		[ "$partition" = "$value" ] && found="$(($found + 1))"
    1.18  	done
    1.19  	if [ "$found" != "1" ]; then
    1.20  		msg="$(gettext "$setting")=$value
    1.21 @@ -619,7 +619,7 @@
    1.22  	local pt_list="gpt msdos"
    1.23  	# get root uuid
    1.24  	local uuid="$(get root_uuid)"
    1.25 -	if [ "$(/sbin/blkid | grep -c "$uuid")" == "1" ]; then
    1.26 +	if [ "$(/sbin/blkid | grep -c "$uuid")" = "1" ]; then
    1.27  		if ! printf "%s" "$(p_table $uuid)" | \
    1.28  				egrep -q "$(regex "$pt_list")"; then
    1.29  			_ 'Error: Unsupported Partition Table.' 1>&2
    1.30 @@ -1409,7 +1409,7 @@
    1.31  	mount -t "$mount_fs" "$ROOT_UUID" \
    1.32  			"$TARGET_ROOT" >>"$LOG" 2>>"$LOG"
    1.33  	if [ $(mount | \
    1.34 -			grep -c "mnt/target") == "0" ]; then
    1.35 +			grep -c "mnt/target") = "0" ]; then
    1.36  		error 4 "$(_ '%s: Unable to mount partition' "$ROOT_UUID")"
    1.37  	fi
    1.38  }
    1.39 @@ -1439,7 +1439,7 @@
    1.40  	fi
    1.41  
    1.42  	# eject cd
    1.43 -	if [ "$SOURCE" == "cdrom" ]; then
    1.44 +	if [ "$SOURCE" = "cdrom" ]; then
    1.45  		_ 'Ejecting CD-ROM...'
    1.46  		eject
    1.47  	fi
    1.48 @@ -1471,12 +1471,12 @@
    1.49  # selection
    1.50  bootloader()
    1.51  {
    1.52 -	if [ "$BOOTLOADER" == "auto" ]; then
    1.53 +	if [ "$BOOTLOADER" = "auto" ]; then
    1.54  		# use syslinux, but if p_table=msdos take grub (if available)
    1.55  		unset BOOTLOADER
    1.56  		printf "%s" "$(list_bootloader)" | \
    1.57  			grep -q "syslinux" && BOOTLOADER=syslinux
    1.58 -		if [ "$(p_table $ROOT_UUID)" == "msdos" ]; then
    1.59 +		if [ "$(p_table $ROOT_UUID)" = "msdos" ]; then
    1.60  			printf "%s" "$(list_bootloader)" | \
    1.61  				grep -q " grub" && BOOTLOADER=grub
    1.62  		fi
    1.63 @@ -2123,7 +2123,7 @@
    1.64  
    1.65  	# install packages.
    1.66  	log "$(_ 'Installing packages...')"
    1.67 -	if [ "$packages" == "0" ]; then
    1.68 +	if [ "$packages" = "0" ]; then
    1.69  		log "$(_ 'packages to install: 0')"
    1.70  	else
    1.71  		# get-install all missing pkgs.