Skip to content

bocchi-the-dev/Bash-Installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

Bash-Installer

Bash-Installer, a simple installer with multi-language support.

Chinese (Simplified + Traditional), Portuguese, Ukranian, Turkish, Russian, Japanese, Itallian, Indoneasian, Español (Spanish) and English are available to switch but it's not translated yet, translate it if you want.

Salient Features:

  • Switches back to English if there's no language asset found
  • Everything is in bash, no other languages are used
  • Option navigation support using Volume Keys
  • No need to hard-code partition paths
  • Easy debugging with shell functions and with recovery logs
  • Busybox from anykernel3 repo

Functions usage:

installImages "<image file name in the zip, ex: system.img>" "<block name, ex: system>"
findActualBlock "<block name, ex: system>"
logInterpreter --ignore-failure "Trying to run a command.." "ls /sequoia"
logInterpreter --handle-failure "Trying to run a command.." "ls /sequoia" "Fallback was triggered!" "ls /montana"
consolePrint "hello world"
consolePrint --language welcome.hello # reads the variable value from the language file
debugPrint "Error-Info|Error|Warning|Abort|Failure | <service>: <message>"
amiMountedOrNot "<partition name, ex: system>"
if ask "<message>"; then
    # this statement runs when volume up (+) is pressed
else
    # this statement runs when volume down (-) is pressed
fi

About

Bash-Installer, a simple installer with multi-language support.

Topics

Resources

License

Stars

Watchers

Forks

Languages