From a0158ffc5416c2bd429a6162d1c3e5a4e31caddc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 27 Feb 2025 07:35:44 -0300 Subject: bin/shot: Ensure directory of $TEMPLATE exists --- bin/shot | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/shot') 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/" -- cgit v1.2.3