mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 05:43:09 +00:00
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:
parent
2641a44481
commit
c7d780e6c5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user