Commit 02143b43 authored by Dylan Araps's avatar Dylan Araps

Scrot: Add a warning when the scrot directory doesn't exist

parent aa684304
......@@ -2258,7 +2258,12 @@ to_off() {
# SCREENSHOT
take_scrot() {
$scrot_cmd "${scrot_dir}${scrot_name}"
if [[ -d "$scrot_dir" ]]; then
$scrot_cmd "${scrot_dir}${scrot_name}"
else
printf "%s\n" "Screenshot: $scrot_dir doesn't exist. Edit the config file or create the directory to take screenshots."
fi
[[ "$scrot_upload" == "on" ]] && scrot_upload
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment