Enhance-use unofficial repo when arm detected automatically
remove --use-switch-package-unofficial-arm when arm detected automatically use the unoffcial repos
This commit is contained in:
parent
c26a162395
commit
b9aa0d9077
|
|
@ -24,7 +24,6 @@ while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--use-switch-source ) export USE_SWITCH_SOURCE=true; shift ;;
|
--use-switch-source ) export USE_SWITCH_SOURCE=true; shift ;;
|
||||||
--use-switch-package-all ) export USE_SWITCH_PACKAGE_ALL=true; shift ;;
|
--use-switch-package-all ) export USE_SWITCH_PACKAGE_ALL=true; shift ;;
|
||||||
--use-switch-package-unofficial-arm ) export USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=true; shift ;;
|
|
||||||
--use-switch-master ) export USE_SWITCH_MASTER=true; shift ;;
|
--use-switch-master ) export USE_SWITCH_MASTER=true; shift ;;
|
||||||
--no-cpu-check ) export CPU_CHECK=false; shift ;;
|
--no-cpu-check ) export CPU_CHECK=false; shift ;;
|
||||||
-h | --help ) HELP=true; shift ;;
|
-h | --help ) HELP=true; shift ;;
|
||||||
|
|
@ -87,13 +86,8 @@ if [ $CPU_CHECK = true ] && [ $USE_SWITCH_SOURCE = false ]; then
|
||||||
|
|
||||||
if [ $CPU_arch = 'arm' ]; then
|
if [ $CPU_arch = 'arm' ]; then
|
||||||
if [ $OS_bits = '32' ]; then
|
if [ $OS_bits = '32' ]; then
|
||||||
if [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = false ]; then
|
export USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=true
|
||||||
error "You are using a 32bit arm OS this is unsupported"
|
|
||||||
warning " please rerun with either --use-switch-package-unofficial-arm or --use-switch-source"
|
|
||||||
exit 3
|
|
||||||
else
|
|
||||||
verbose "Correct CPU/OS detected, using unofficial arm repo"
|
verbose "Correct CPU/OS detected, using unofficial arm repo"
|
||||||
fi
|
|
||||||
elif [ $OS_bits = '64' ]; then
|
elif [ $OS_bits = '64' ]; then
|
||||||
error "You are using a 64bit arm OS this is unsupported"
|
error "You are using a 64bit arm OS this is unsupported"
|
||||||
warning " please rerun with --use-switch-source"
|
warning " please rerun with --use-switch-source"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue