dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit d4f12ec2e6ce696c21a896996ec8b8a6f7492a0f
parent 5e18988ee0da90137760060fd579cbb5853ce8d6
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon,  9 Oct 2023 23:49:11 -0700

grimshot: create output dir if necessary

Diffstat:
M.local/bin/grimshot | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/.local/bin/grimshot b/.local/bin/grimshot @@ -91,6 +91,9 @@ takeScreenshot() { FILE=$1 GEOM=$2 OUTPUT=$3 + + DIR="$(dirname "$FILE")" + mkdir -p "$DIR" if [ ! -z "$OUTPUT" ]; then grim -o "$OUTPUT" "$FILE" || die "Unable to invoke grim" elif [ -z "$GEOM" ]; then