From 452d53614f42762c6d49318eea79532be7406084 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 29 Sep 2020 15:46:36 +0200 Subject: [PATCH] added mkdir to for screenshot --- .local/share/scripts/take-selected-screenshot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.local/share/scripts/take-selected-screenshot.sh b/.local/share/scripts/take-selected-screenshot.sh index b9dea1d..827b9d3 100755 --- a/.local/share/scripts/take-selected-screenshot.sh +++ b/.local/share/scripts/take-selected-screenshot.sh @@ -8,6 +8,8 @@ SCREENSHOT_DIR="$HOME/pictures/screenshots" screenshotFile=$($SCRIPTPATH/take-screenshot.sh) +mkdir -p "$SCREENSHOT_DIR" + mv "$screenshotFile" "$SCREENSHOT_DIR" rm -rf "$(dirname $screenshotFile)"