tinycm diff plugins/blog/blog.cgi @ rev 121

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 12:26:25 2019 +0100 (2019-02-26)
parents 798212b3ce40
children
line diff
     1.1 --- a/plugins/blog/blog.cgi	Fri Mar 24 23:59:43 2017 +0100
     1.2 +++ b/plugins/blog/blog.cgi	Tue Feb 26 12:26:25 2019 +0100
     1.3 @@ -14,8 +14,8 @@
     1.4  	<a href="$script?blog=edit&amp;p=new">$(gettext "New post")</a>
     1.5  	<a href="$script?blog=archives">$(gettext "Archives")</a>
     1.6  	<a href="$script?dashboard">Dashboard</a>
     1.7 -	$([ "$index" == "blog" ] && echo "<a href='$script?d=index'>Index</a>")
     1.8 -	$([ "$HG" == "yes" ] && echo "<a href='$script?hg'>Hg Log</a>")
     1.9 +	$([ "$index" = "blog" ] && echo "<a href='$script?d=index'>Index</a>")
    1.10 +	$([ "$HG" = "yes" ] && echo "<a href='$script?hg'>Hg Log</a>")
    1.11  </div>
    1.12  EOT
    1.13  	fi
    1.14 @@ -111,7 +111,7 @@
    1.15  }
    1.16  
    1.17  # RSS feed requested
    1.18 -if [ "$(GET blog)" == "rss" ]; then
    1.19 +if [ "$(GET blog)" = "rss" ]; then
    1.20  	rss && exit 0
    1.21  fi
    1.22  
    1.23 @@ -151,7 +151,7 @@
    1.24  		fi
    1.25  		blog_tools
    1.26  		# New post
    1.27 -		if [ "$p" == "new" ]; then
    1.28 +		if [ "$p" = "new" ]; then
    1.29  			last=$(ls $blog | sort -r -n | head -n 1)
    1.30  			p=$(($last + 1))
    1.31  			AUTHOR="$user"