CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] Can it run in Termux ?

Open billmax opened this issue 4 months ago • 0 comments

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' ~ $

billmax avatar Oct 20 '24 10:10 billmax