From 64693058a7d5b5386f6852d66bb034acf4e8422c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 2 Oct 2016 22:03:17 +1100 Subject: [PATCH] Check that curl is installed before attempting to upload anything --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 3149aa93..95b7fa24 100755 --- a/neofetch +++ b/neofetch @@ -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..."