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)"