# HG changeset patch # User Pascal Bellard # Date 1551180405 -3600 # Node ID 28af8244bf8e38d1a3da61949c60be46d4535903 # Parent 9c53aa99d1f67ecaf6bc2384fcccb2aa8e0d82b1 Remove ashism == diff -r 9c53aa99d1f6 -r 28af8244bf8e server/sup/sup.cgi --- a/server/sup/sup.cgi Thu Apr 20 04:55:50 2017 -0300 +++ b/server/sup/sup.cgi Tue Feb 26 12:26:45 2019 +0100 @@ -13,7 +13,7 @@ # This script is called directly on upload: get httphelper.sh functions # and set full path to move files -if [ "$(basename $0)" == "sup.cgi" ]; then +if [ "$(basename $0)" = "sup.cgi" ]; then . /lib/libtaz.sh . /usr/lib/slitaz/httphelper.sh . paths.conf @@ -58,7 +58,7 @@ # Tools for logged users if check_auth; then # Only package owner can update a package MAIL is set by check_auth - if [ "$MAINTAINER" == "$MAIL" ]; then + if [ "$MAINTAINER" = "$MAIL" ]; then cat << EOT $(gettext "Update package") EOT @@ -228,7 +228,7 @@ fi # Publish and display pkg url's if no error - if [ "$error" == "0" ]; then + if [ "$error" = "0" ]; then gettext "Moving package to mirror..." mv -f ${supfile} ${packages}; status gettext "Moving receip to public wok..." diff -r 9c53aa99d1f6 -r 28af8244bf8e sup --- a/sup Thu Apr 20 04:55:50 2017 -0300 +++ b/sup Tue Feb 26 12:26:45 2019 +0100 @@ -426,7 +426,7 @@ . ${installed}/${pkg}/receip echo "$pkg $(indent 26 $VERSION) $(indent 42 $MAINTAINER)" done - if [ "$installed_nb" == 0 ]; then + if [ "$installed_nb" = 0 ]; then gettext "No sup packages installed"; echo fi newline @@ -462,7 +462,7 @@ *|info) # Display pkg info if installed - [ "$1" == "info" ] && shift + [ "$1" = "info" ] && shift pkg="$1" if [ -f "$installed/$pkg/receip" ]; then . ${installed}/${pkg}/receip