wok rev 11020
get-virtualbox: update error message
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 14 17:03:16 2011 +0200 (2011-10-14) |
parents | 711930d88e82 |
children | 7f37d33e799b |
files | get-virtualbox/stuff/get-virtualbox |
line diff
1.1 --- a/get-virtualbox/stuff/get-virtualbox Fri Oct 14 16:57:10 2011 +0200 1.2 +++ b/get-virtualbox/stuff/get-virtualbox Fri Oct 14 17:03:16 2011 +0200 1.3 @@ -29,8 +29,11 @@ 1.4 mkdir -p $TMP_DIR && cd $TMP_DIR 1.5 1.6 url=$(dl_url) 1.7 -TARBALL=$(basename $url) 1.8 -wget $url 1.9 +TARBALL="$PACKAGE files" 1.10 +if [ -n "$url" ]; then 1.11 + TARBALL=$(basename $url) 1.12 + wget $url 1.13 +fi 1.14 1.15 if [ ! -f "$TARBALL" ]; then 1.16 cd $CUR_DIR