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

linux: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 18 17:13:32 2018 +0100 (2018-03-18)
parents cc044c37d3ba
children 02c70d036ea0
line diff
     1.1 --- a/xsnow/stuff/xsnow.sh	Thu Jan 14 22:11:10 2016 +0100
     1.2 +++ b/xsnow/stuff/xsnow.sh	Sun Mar 18 17:13:32 2018 +0100
     1.3 @@ -21,15 +21,14 @@
     1.4  	--field="Check this if snow layering doesn't work":CHK \
     1.5  	--field="Duration (min) (0 = unlimited)":NUM \
     1.6  	-- '100!1..1000' "$colors" 'true' SkyBlue3\!"$colors" \
     1.7 -	chartreuse\!"${colors/chartreuse/}" '2!0..2' '-1!-1..inf' '3!1..inf' \
     1.8 -	50 true 3 2 '10!1..inf' true 30 15 50 0 true true true true true false 0)
     1.9 +	chartreuse\!"${colors/chartreuse!/}" '2!0..2' '-1!-1..inf' '3!1..inf' \
    1.10 +	50 true '3!1..inf' 2 10 true 30 15 50 0 true true true true true false 0)
    1.11  [ $? -eq 0 ] || exit 1
    1.12  pid1=$(pgrep -fl 'spacefm --desktop'|cut -f1 -d' ')
    1.13  pid2=$(pgrep -fl 'pcmanfm --desktop'|cut -f1 -d' ')
    1.14 -[ -n "$pid1" -o -n "$pid2" ] && yad --title=Warning $icon \
    1.15 +[ -n "$pid1" -o -n "$pid2" ] && { yad --title=Warning $icon \
    1.16  	--text="Your file manager windows will be closed, and your desktop icons \
    1.17 -temporarily removed. Continue?"
    1.18 -[ $? -eq 0 ] || exit 2
    1.19 +temporarily removed. Continue?" || exit 2 ;}
    1.20  [ -n "$pid1" ] && kill $pid1
    1.21  [ -n "$pid2" ] && kill $pid2
    1.22  # add dummy var to gobble last |