aboutsummaryrefslogtreecommitdiff
path: root/bin/shot
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-02-27 07:35:44 -0300
committerEuAndreh <eu@euandre.org>2025-02-27 07:35:44 -0300
commita0158ffc5416c2bd429a6162d1c3e5a4e31caddc (patch)
tree85117260924f3c1cfb6042f71b9c2880ea703454 /bin/shot
parentetc/sh/rc: Silence warning on of bad `img2sixel` completion file (diff)
downloaddotfiles-a0158ffc5416c2bd429a6162d1c3e5a4e31caddc.tar.gz
dotfiles-a0158ffc5416c2bd429a6162d1c3e5a4e31caddc.tar.xz
bin/shot: Ensure directory of $TEMPLATE exists
Diffstat (limited to 'bin/shot')
-rwxr-xr-xbin/shot1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/shot b/bin/shot
index a46894d..c7636e5 100755
--- a/bin/shot
+++ b/bin/shot
@@ -73,6 +73,7 @@ done
shift $((OPTIND - 1))
TEMPLATE=~/Pictures/Screenshots/%Y-%m-%dT%H:%M:%S.png
+mkdir -p "$(dirname "$TEMPLATE")"
scrot $OPTS "$TEMPLATE"
msg -D "screenshot saved on ~/Pictures/Screenshots/"