Backport #1288 from /trunk:

- Fix aborting when neither wget nor curl are present

 /branches/1.3/scripts/functions |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
Yann E. MORIN" 2009-01-27 22:27:35 +00:00
parent 2641a44481
commit c7d780e6c5

View File

@ -426,7 +426,7 @@ _curl=$(CT_Which curl)
# Usage: CT_DoGetFile <URL>
CT_DoGetFile() {
case "${_wget},${_curl}" in
,) CT_DoError "Could find neither wget nor curl";;
,) CT_Abort "Could find neither wget nor curl";;
,*) CT_DoExecLog ALL CT_DoGetFileCurl "$1" 2>&1;;
*) CT_DoExecLog ALL CT_DoGetFileWget "$1" 2>&1;;
esac