wok diff xsnow/stuff/xsnow.sh @ rev 20892

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 09:14:07 2019 +0100 (2019-02-26)
parents 36d70656dfc2
children
line diff
     1.1 --- a/xsnow/stuff/xsnow.sh	Fri Mar 25 21:32:05 2016 +0100
     1.2 +++ b/xsnow/stuff/xsnow.sh	Tue Feb 26 09:14:07 2019 +0100
     1.3 @@ -36,18 +36,18 @@
     1.4  winsd scrsd off trees santa rud winsn scrsn popupsn duration dummy<<EOT
     1.5  $settings
     1.6  EOT
     1.7 -[ $back == FALSE ] && back=''
     1.8 +[ $back = FALSE ] && back=''
     1.9  flags=''
    1.10 -[ $smooth == FALSE ] && flags=$flags" -unsmooth"
    1.11 -[ $wind == FALSE ] && flags=$flags" -nowind"
    1.12 -[ $trees == FALSE ] && flags=$flags" -notrees"
    1.13 -[ $santa == FALSE ] && flags=$flags" -nosanta"
    1.14 -[ $rud == FALSE ] && flags=$flags" -norudolf"
    1.15 -if [ $winsn == FALSE -a $scrsn == FALSE ]; then flags=$flags" -nokeepsnow"
    1.16 -elif [ $winsn == FALSE ]; then flags=$flags" -nokeepsnowonwindows"
    1.17 -elif [ $scrsn == FALSE ]; then flags=$flags" -nokeepsnowonscreen"
    1.18 +[ $smooth = FALSE ] && flags=$flags" -unsmooth"
    1.19 +[ $wind = FALSE ] && flags=$flags" -nowind"
    1.20 +[ $trees = FALSE ] && flags=$flags" -notrees"
    1.21 +[ $santa = FALSE ] && flags=$flags" -nosanta"
    1.22 +[ $rud = FALSE ] && flags=$flags" -norudolf"
    1.23 +if [ $winsn = FALSE -a $scrsn = FALSE ]; then flags=$flags" -nokeepsnow"
    1.24 +elif [ $winsn = FALSE ]; then flags=$flags" -nokeepsnowonwindows"
    1.25 +elif [ $scrsn = FALSE ]; then flags=$flags" -nokeepsnowonscreen"
    1.26  fi
    1.27 -[ $popupsn == TRUE ] && flags=$flags" -nonopopup"
    1.28 +[ $popupsn = TRUE ] && flags=$flags" -nonopopup"
    1.29  xsnow -snowflakes ${sf%.*} -sc "$sc" ${back:+-solidbg -bg "$bc"} -tc "$tc" \
    1.30  	-santa ${ssiz%.*} -santaspeed ${ssp%.*} -santaupdatefactor ${suf%.*} \
    1.31  	-delay ${delay%.*} -whirl ${wf%.*} -xspeed ${xs%.*} -yspeed ${ys%.*} \