diff --git a/apt-cyg b/apt-cyg index 84a2d5f..2f41358 100755 --- a/apt-cyg +++ b/apt-cyg @@ -122,10 +122,15 @@ function wget { if command wget -h &>/dev/null then command wget "$@" - else + elif + then warn wget is not installed, using lynx as fallback set "${*: -1}" lynx -source "$1" > "${1##*/}" + else + warn wget and lynx not installed, using curl as fallback + set "${*: -1}" + curl -sL "$1" > "${1##*/}" fi } diff --git a/readme.md b/readme.md index 5b44a03..11285d6 100644 --- a/readme.md +++ b/readme.md @@ -65,7 +65,7 @@ Quick start apt-cyg is a simple script. To install: - lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg + curl -L rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg install apt-cyg /bin Example use of apt-cyg: