We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use Termux on Poco F2,when “ curl -fsSL https://get.casaos.io | sudo bash ” it reported as below:
#######################################
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' ~ $
elif' bash: line 7:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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() {$COLOUR_RESET$ {aCOLOUR[2]}]$COLOUR_RESET $2"
# OK
if (($1 == 0)); then
echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[0]} OK
# 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'~ $
The text was updated successfully, but these errors were encountered: