Improve Alpine scripts
This commit is contained in:
parent
7badf3b3bf
commit
fb610620da
26
alpine.sh
Normal file
26
alpine.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
sh init.sh
|
||||
}
|
||||
|
||||
while [ ${#} -gt 0 ]; do
|
||||
case ${1} in
|
||||
--help) showHelp; exit 0;;
|
||||
-b | --base-url) BASE_URL="${2}"; shift;;
|
||||
*) shift;;
|
||||
esac
|
||||
done
|
||||
|
||||
main
|
Loading…
Reference in New Issue
Block a user