optional parameter works in dmenu+shell

This commit is contained in:
shockrah committed 2019-09-26 15:12:10 -07:00
1 parent b6b45eace3
commit 100315b057
1 file changed
+5 -1
+5 -1
View File
@@ -1,2 +1,6 @@
#!/bin/sh
scrot -sz $HOME/tmp.png
if [ -z "$1" ]; then
scrot -sz $HOME/tmp.png
else
scrot -sz $HOME/$1
fi