Check that curl is installed before attempting to upload anything
This commit is contained in:
5
neofetch
5
neofetch
@@ -2298,6 +2298,11 @@ takescrot() {
|
|||||||
# Screenshot Upload {{{
|
# Screenshot Upload {{{
|
||||||
|
|
||||||
scrot_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}"
|
image_file="${scrot_dir}${scrot_name}"
|
||||||
printf "%s\n" "Uploading image..."
|
printf "%s\n" "Uploading image..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user