Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down