Re: [mlmmj] [PATCH 2/2] src/mlmmj-make-ml.in: use the YES from -a

Eric Wong <[email protected]>
Newsgroups org.mlmmj.mlmmj
Message-ID <20170511171232.GA22053@starla>
Geert Stappers <[email protected]> wrote:
> -if [ -n "$A_CREATE" ]; then
> +if [ "$A_CREATE" = "YES" ]; then
>  	echo "I want to add the following to your $ALIASFILE file:"
>  	echo "$ALIAS"

"=" is not portable, I suggest "=" for scripts run by /bin/sh
(which may not be bash, Debian-based systems tend to use dash,
there)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.