Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Can it run in Termux ? #2028

Open
billmax opened this issue Oct 20, 2024 · 0 comments
Open

[Bug] Can it run in Termux ? #2028

billmax opened this issue Oct 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@billmax
Copy link

billmax commented Oct 20, 2024

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 billmax added the bug Something isn't working label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant