Scrot: Add a warning when the scrot directory doesn't exist
This commit is contained in:
parent
aa6843048f
commit
02143b4323
7
neofetch
7
neofetch
|
@ -2258,7 +2258,12 @@ to_off() {
|
||||||
# SCREENSHOT
|
# SCREENSHOT
|
||||||
|
|
||||||
take_scrot() {
|
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
|
[[ "$scrot_upload" == "on" ]] && scrot_upload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue