mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
Fix aborting when neither wget nor curl are present.
/trunk/scripts/functions | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
parent
ba9fe0dec8
commit
7593ffbf36
@ -427,7 +427,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
|
||||
|
Loading…
Reference in New Issue
Block a user