diff --git a/README.md b/README.md index 9397ad0..646ea11 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ pulls from master so its the very latest built for debian-like systems only currently tested on zsh +some features require user to have passwordless sudo rights ## Quick start `git clone https://github.com/PrincessPi3/esp-install-custom.git ~` @@ -36,26 +37,35 @@ Modes: test: tests the script. very fast. minimal actions taken. no reinstall is done bash reinstall-esp-idf.sh test + bash reinstall-esp-idf.sh t retool: reinstalls bins and export.sh, nothing else bash reinstall-esp-idf.sh retool + bash reinstall-esp-idf.sh rt cron: runs noninteractively with forced user logout and automatic reboot, plus delays bash reinstall-esp-idf.sh cron + bash reinstall-esp-idf.sh c interactive: interactively installs/reinstalls esp-idf bash reinstall-esp-idf.sh interactive + bash reinstall-esp-idf.sh i clearlogs: clear logs bash reinstall-esp-idf.sh clearlogs - + bash reinstall-esp-idf.sh clear + bash reinstall-esp-idf.sh cl + help: display this help text bash reinstall-esp-idf.sh help + bash reinstall-esp-idf.sh h + bash reinstall-esp-idf.sh -h + bash reinstall-esp-idf.sh --help ``` diff --git a/help.txt b/help.txt index 005b66c..b1bcffc 100644 --- a/help.txt +++ b/help.txt @@ -6,26 +6,35 @@ Modes: test: tests the script. very fast. minimal actions taken. no reinstall is done `bash reinstall-esp-idf.sh test` + `bash reinstall-esp-idf.sh t` retool: reinstalls bins and export.sh, nothing else `bash reinstall-esp-idf.sh retool` + `bash reinstall-esp-idf.sh rt` cron: runs noninteractively with forced user logout and automatic reboot, plus delays `bash reinstall-esp-idf.sh cron` + `bash reinstall-esp-idf.sh c` interactive: interactively installs/reinstalls esp-idf `bash reinstall-esp-idf.sh interactive` + `bash reinstall-esp-idf.sh i` clearlogs: clear logs `bash reinstall-esp-idf.sh clearlogs` + `bash reinstall-esp-idf.sh clear` + `bash reinstall-esp-idf.sh cl` help: display this help text `bash reinstall-esp-idf.sh help` + `bash reinstall-esp-idf.sh h` + `bash reinstall-esp-idf.sh -h` + `bash reinstall-esp-idf.sh --help` Usage: diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index 8e729a7..bbabede 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -262,7 +262,7 @@ if [ "$arg" == "--help" -o "$arg" == "help" -o "$arg" == "-h" -o "$arg" == "h" ] exit -elif [ "$arg" == "test" ]; then # minimal actions taken, echo the given commands and such +elif [ "$arg" == "test" -o "$arg" == "t" ]; then # minimal actions taken, echo the given commands and such action="TEST" gitCmd="echo git clone --jobs $gitJobs --branch $gitBranch --single-branch https://github.com/espressif/esp-idf $idfDir" @@ -283,7 +283,7 @@ elif [ "$arg" == "test" ]; then # minimal actions taken, echo the given commands exit -elif [ "$arg" == "retool" ]; then # just reinstall bins and export +elif [ "$arg" == "retool" -o "$arg" == "rt" ]; then # just reinstall bins and export action="RETOOL" handleStart @@ -293,7 +293,7 @@ elif [ "$arg" == "retool" ]; then # just reinstall bins and export exit -elif [ "$arg" == "interactive" ]; then +elif [ "$arg" == "interactive" -o "$arg" == "i" ]; then action="REINSTALL (INTERACTIVE)" echo "Enter full path to install dir, default: $installDir" @@ -336,7 +336,7 @@ elif [ "$arg" == "interactive" ]; then exit -elif [ "$arg" == "cron" ]; then # full install with warn, sleep, and reboot +elif [ "$arg" == "cron" -o "$arg" == "c" ]; then # full install with warn, sleep, and reboot action="REINSTALL (CRON)" handleStart @@ -351,7 +351,7 @@ elif [ "$arg" == "cron" ]; then # full install with warn, sleep, and reboot exit -elif [ "$arg" == "clearlogs" ]; then # clear logs +elif [ "$arg" == "clearlogs" -o "$arg" == "cl" -o "$arg" == "clear" ]; then # clear logs handleEmptyLogs exit diff --git a/version.txt b/version.txt index 70b2731..78e9fcf 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -60-beta2.3 \ No newline at end of file +60-beta2.4 \ No newline at end of file