handling missing curl
This commit is contained in:
parent
09d7767a1a
commit
3a7e3d870f
8
rtenets
8
rtenets
|
@ -191,8 +191,12 @@ READMEMSG
|
||||||
local licence="COPYING"
|
local licence="COPYING"
|
||||||
|
|
||||||
if ! [ -f "${licence}" ]; then
|
if ! [ -f "${licence}" ]; then
|
||||||
info "setting licence to GPL by default, see https://www.gnu.org/licenses for more options"
|
if has_command curl; then
|
||||||
curl "https://www.gnu.org/licenses/gpl-3.0.txt" > "${licence}"
|
info "setting licence to GPL by default, see https://www.gnu.org/licenses for more options"
|
||||||
|
curl "https://www.gnu.org/licenses/gpl-3.0.txt" > "${licence}"
|
||||||
|
else
|
||||||
|
warning "please choose a free software licence, see https://www.gnu.org/licenses"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue