IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
26.17k stars 1.42k forks source link

[Bug] Can it run in Termux ? #2028

Open billmax opened 3 weeks ago

billmax commented 3 weeks ago

I use Termux on Poco F2,when “ curl -fsSL https://get.casaos.io | sudo bash ” it reported as below:

#######################################

Custom printing function

Globals:

None

Arguments:

$1 0:OK 1:FAILED 2:INFO 3:NOTICE

message

Returns:

None

#######################################

Show() {

OK

if (($1 == 0)); then
    echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[0]}  OK  $COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
# FAILED
elif (($1 == 1)); then
    echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[3]}FAILED$COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
    exit 1
# INFO
elif (($1 == 2)); then
    echo -e "${aCOLOUR[2]}[$bash: line 7: syntax error near unexpected token `elif'

bash: line 7: ` elif [ -x "$(command -v zypper)" ]; then' ~ $