Add files via upload

This commit is contained in:
Daniel
2021-04-21 22:41:54 +02:00
committed by GitHub
parent c239535a51
commit e4ce8fb78a
+8 -8
View File
@@ -21,7 +21,7 @@ help()
Usage: Usage:
`basename ${0}` [--sysroot|-s] [--mirror|-m] [--release|-r] [--arch|-a] [--distro|-d] <--install|i || --uninstall|-u> <PACKAGES> `basename ${0}` [--sysroot] [--mirror] [--release] [--arch] [--distro] <--install || --uninstall> <PACKAGES>
help help
@@ -49,13 +49,13 @@ if [ ${#} != 0 ]; then
v="${arg#*=}" v="${arg#*=}"
case ${arg} in case ${arg} in
--help|-h) help && exit 0 ;; --help|-h) help && exit 0 ;;
--sysroot=*|-s\ *) export SYSROOT="${v}" ;; --sysroot=*) export SYSROOT="${v}" ;;
--mirror=*|-m\ *) export MIRROR="${v}" ;; --mirror=*) export MIRROR="${v}" ;;
--release=*|-r\ *) export RELEASE="${v}" ;; --release=*) export RELEASE="${v}" ;;
--arch=*|-a\ *) export ARCH="${v}" ;; --arch=*) export ARCH="${v}" ;;
--distro=*|-d\ *) export DISTRO="${v}" ;; --distro=*) export DISTRO="${v}" ;;
--install=*|-i\ *) export PACKAGES="${@}" && METHOD="install" ;; --install=*) export PACKAGES="${@}" && METHOD="install" ;;
--uninstall=*|-u\ *) export PACKAGES="${@}" && METHOD="uninstall" ;; --uninstall=*) export PACKAGES="${@}" && METHOD="uninstall" ;;
--init) init ;; --init) init ;;
esac esac
done done