added cli functionality to snip for named output

This commit is contained in:
shockrahwow
2019-09-25 18:17:45 -07:00
parent b6b45eace3
commit 75a40816e5
3 changed files with 7 additions and 9 deletions

7
snip
View File

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