[SCRIPT_DESCRIPTION] (e.g. "A template for building shell scripts for RetroPie.")
cd /home/pi/
git clone [REPO_URL] (e.g. "https://github.com/hiulit/RetroPie-Shell-Script-Boilerplate")
cd [REPO_NAME]/ (e.g "RetroPie-Shell-Script-Boilerplate")
sudo chmod +x [SCRIPT_NAME].sh (e.g. "retropie-shell-script-boilerplate")
cd /home/pi/[REPO_NAME]/ (e.g "RetroPie-Shell-Script-Boilerplate")
git pull
COMMENTS:
- Add
sudo
before./[SCRIPT_NAME].sh
if the script needs to be run under sudo. - Don't change
[OPTIONS]
! - Remember to remove these comments.
./[SCRIPT_NAME].sh [OPTIONS] (e.g. "retropie-shell-script-boilerplate)""
If no options are passed, you will be prompted with a usage example:
USAGE: ./[SCRIPT_NAME].sh [OPTIONS] (e.g. "retropie-shell-script-boilerplate")
Use '--help' to see all the options.
COMMENTS:
- Add as many
--[OPTION]: [OPTION_DESCRIPTION]
as you need. - Remember to remove these comments.
--help
: Print the help message.--dialog [OPTIONS]
: Show example dialog boxes.--version
: Show script version.--[OPTION]
: [OPTION_DESCRIPTION] (e.g "--version
: Show script version.")
Print the help message.
COMMENTS:
- Add
sudo
before./[SCRIPT_NAME].sh
if the script needs to be run under sudo. - Remember to remove these comments.
./[SCRIPT_NAME].sh --help (e.g. "retropie-shell-script-boilerplate")
Show example dialog boxes.
Take a look at utils/dialog.sh for more documentation on how to use dialogs.
infobox
- Show an example of an "Info Box".yesno
- Show an example of a "Yes/No Box".msgbox
- Show an example of a "Message Box".menu
- Show an example of a "Menu Box".
./retropie-shell-script-boilerplate --dialog "yesno"
Show script version.
COMMENTS:
- Add
sudo
before./[SCRIPT_NAME].sh
if the script needs to be run under sudo. - Remember to remove these comments.
./[SCRIPT_NAME].sh --version (e.g. "retropie-shell-script-boilerplate")
[OPTION_DESCRIPTION]
COMMENTS:
- Add
sudo
before./[SCRIPT_NAME].sh
if the script needs to be run under sudo. - Remember to remove these comments.
./[SCRIPT_NAME].sh --[OPTION] (e.g. "retropie-shell-script-boilerplate --version")
[CONFIG_FILE_DESCRIPTION]
COMMENTS:
- Copy and paste your config file.
- If the config file is too big, maybe it's not a good idea to add it here.
- Remember to remove these comments.
# Settings for [SCRIPT_TITLE] (e.g. "RetroPie Shell Script Boilerplate")
# Add your own [key = "value"] (e.g. path_to_whatever = "/path/to/whatever")
# [KEY] WITHOUT quotes.
# [VALUE] WITH quotes.
# There MUST be 1 space before and after '='.
# To indicate that a [KEY] has NO [VALUE] or is NOT SET, just leave the quotes, like this: "".
# Description of the [key = "value"] (e.g. # Set path to whatever).
[KEY] = "[VALUE]"
# Add your own [key = "value"]
See CHANGELOG.
See CONTRIBUTING.
- Yourself
- Another person.
Thanks to:
- That person.
- That other person.
[LICENSE]. (e.g. "MIT License")