mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-09-28 00:09:02 +00:00
better curl/wget not found message
This commit is contained in:
parent
95b2b9a79d
commit
ef80aa5690
@ -11,7 +11,7 @@
|
|||||||
# This file is public domain in the USA and all free countries.
|
# This file is public domain in the USA and all free countries.
|
||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.2-pre2-0-g2824487
|
#### $$VERSION$$ v1.2-pre2-1-g95b2b9a
|
||||||
#
|
#
|
||||||
# Exit Codes:
|
# Exit Codes:
|
||||||
# - 0 success (hopefully)
|
# - 0 success (hopefully)
|
||||||
@ -488,9 +488,9 @@ else
|
|||||||
else
|
else
|
||||||
# ups, no curl AND no wget
|
# ups, no curl AND no wget
|
||||||
if [ -n "${BASHBOT_WGET}" ]; then
|
if [ -n "${BASHBOT_WGET}" ]; then
|
||||||
printf "%s: Error: You set BASHBOT_WGET but no wget found!\n" "$(date)"
|
echo -e "${RED}Error: You set BASHBOT_WGET but no wget found!${NC}"
|
||||||
else
|
else
|
||||||
printf "%s: Error: You must at least install curl or wget\n" "$(date)"
|
echo -e "${RED}Error: curl and wget not found, install curl!${NC}"
|
||||||
fi
|
fi
|
||||||
exit 8
|
exit 8
|
||||||
fi
|
fi
|
||||||
@ -1173,7 +1173,7 @@ if [ -z "${SOURCE}" ]; then
|
|||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
# print usage stats
|
# print usage stats
|
||||||
"count") echo -e "${RED}Command ${GREY}count${RED} is deprecated, use ${GREY}stats{$RED}instead.${NC}";&
|
"count") echo -e "${RED}Command ${GREY}count${RED} is deprecated, use ${GREY}stats${RED}instead.${NC}";&
|
||||||
"stats")
|
"stats")
|
||||||
ME="$(getConfigKey "botname")"
|
ME="$(getConfigKey "botname")"
|
||||||
declare -A STATS
|
declare -A STATS
|
||||||
|
Loading…
Reference in New Issue
Block a user