sup rev 53 tip

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 12:26:45 2019 +0100 (2019-02-26)
parents 9c53aa99d1f6
children
files server/sup/sup.cgi sup
line diff
     1.1 --- a/server/sup/sup.cgi	Thu Apr 20 04:55:50 2017 -0300
     1.2 +++ b/server/sup/sup.cgi	Tue Feb 26 12:26:45 2019 +0100
     1.3 @@ -13,7 +13,7 @@
     1.4  
     1.5  # This script is called directly on upload: get httphelper.sh functions
     1.6  # and set full path to move files
     1.7 -if [ "$(basename $0)" == "sup.cgi" ]; then
     1.8 +if [ "$(basename $0)" = "sup.cgi" ]; then
     1.9  	. /lib/libtaz.sh
    1.10  	. /usr/lib/slitaz/httphelper.sh
    1.11  	. paths.conf
    1.12 @@ -58,7 +58,7 @@
    1.13  		# Tools for logged users
    1.14  		if check_auth; then
    1.15  			# Only package owner can update a package MAIL is set by check_auth
    1.16 -			if [ "$MAINTAINER" == "$MAIL" ]; then
    1.17 +			if [ "$MAINTAINER" = "$MAIL" ]; then
    1.18  				cat << EOT
    1.19  	<a href="?sup=upload">$(gettext "Update package")</a>
    1.20  EOT
    1.21 @@ -228,7 +228,7 @@
    1.22  		fi
    1.23  
    1.24  		# Publish and display pkg url's if no error
    1.25 -		if [ "$error" == "0" ]; then
    1.26 +		if [ "$error" = "0" ]; then
    1.27  			gettext "Moving package to mirror..."
    1.28  			mv -f ${supfile} ${packages}; status
    1.29  			gettext "Moving receip to public wok..."
     2.1 --- a/sup	Thu Apr 20 04:55:50 2017 -0300
     2.2 +++ b/sup	Tue Feb 26 12:26:45 2019 +0100
     2.3 @@ -426,7 +426,7 @@
     2.4  			. ${installed}/${pkg}/receip
     2.5  			echo "$pkg $(indent 26 $VERSION) $(indent 42 $MAINTAINER)"
     2.6  		done
     2.7 -		if [ "$installed_nb" == 0 ]; then
     2.8 +		if [ "$installed_nb" = 0 ]; then
     2.9  			gettext "No sup packages installed"; echo
    2.10  		fi
    2.11  		newline
    2.12 @@ -462,7 +462,7 @@
    2.13  		
    2.14  	*|info)
    2.15  		# Display pkg info if installed
    2.16 -		[ "$1" == "info" ] && shift
    2.17 +		[ "$1" = "info" ] && shift
    2.18  		pkg="$1"
    2.19  		if [ -f "$installed/$pkg/receip" ]; then
    2.20  			. ${installed}/${pkg}/receip