This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
# Make sure we have wget or curl | |
available () { | |
command -v "$1" >/dev/null 2>&1 | |
} | |
if available wget; then | |
DL="wget -O-" | |
DL_SL="wget -qO-" | |
elif available curl; then |