Check that curl is installed before attempting to upload anything

This commit is contained in:
Dylan Araps 2016-10-02 22:03:17 +11:00
parent 77d126c396
commit 64693058a7
1 changed files with 5 additions and 0 deletions

View File

@ -2298,6 +2298,11 @@ takescrot() {
# Screenshot Upload {{{
scrot_upload() {
if ! type -p curl >/dev/null 2>&1; then
printf "%s\n" "[!] Install curl to upload images"
return
fi
image_file="${scrot_dir}${scrot_name}"
printf "%s\n" "Uploading image..."