commit e32a88b0ae505bb7b85fd7684e538d6cf12389d8 parent 8a521eb095a657ca6372431d99b076346bd9ef6a Author: pyratebeard <root@pyratebeard.net> Date: Thu, 25 Feb 2021 16:43:23 +0000 set default filename if one isn't given Diffstat:
M | bin/bin/capture | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/bin/capture b/bin/bin/capture @@ -1,4 +1,5 @@ #!/usr/bin/env bash -filename=$1 + +[ -z $1 ] && filename="capture" || filename=$1 /usr/bin/scrot -s $HOME/tmp/$(date +%Y%m%d)-${filename}.png