optional parameter works in dmenu+shell

This commit is contained in:
shockrah 2019-09-26 15:12:10 -07:00
parent b6b45eace3
commit 100315b057

4
snip
View File

@ -1,2 +1,6 @@
#!/bin/sh #!/bin/sh
if [ -z "$1" ]; then
scrot -sz $HOME/tmp.png scrot -sz $HOME/tmp.png
else
scrot -sz $HOME/$1
fi