handling missing curl
This commit is contained in:
parent
09d7767a1a
commit
3a7e3d870f
8
rtenets
8
rtenets
|
@ -191,8 +191,12 @@ READMEMSG
|
|||
local licence="COPYING"
|
||||
|
||||
if ! [ -f "${licence}" ]; then
|
||||
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}"
|
||||
if has_command curl; then
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue