os-init/alpine.sh

27 lines
406 B
Bash
Raw Normal View History

2023-11-19 17:58:42 +00:00
#!/bin/dash
BASE_URL=https://git.netm.ch/m/os-init/raw/branch/main
showHelp() {
echo "alpine.sh"
echo ""
echo "use :"
echo "sh alpine.sh [options]"
echo " -b | --base-url url"
}
main() {
wget "${BASE_URL}"/alpine/init.sh
2023-11-19 17:59:41 +00:00
sh init.sh -b "${BASE_URL}"
2023-11-19 17:58:42 +00:00
}
while [ ${#} -gt 0 ]; do
case ${1} in
--help) showHelp; exit 0;;
-b | --base-url) BASE_URL="${2}"; shift;;
*) shift;;
esac
done
main