bug fixe
This commit is contained in:
@@ -74,6 +74,8 @@ cd $ESPIDF_INSTALLDIR
|
|||||||
|
|
||||||
echo -e "\nesp-idf version: $ESP_IDF_VERSION commit $commitHash from branch $branchData"
|
echo -e "\nesp-idf version: $ESP_IDF_VERSION commit $commitHash from branch $branchData"
|
||||||
|
|
||||||
|
echo -e "\nrun with `run_esp_cmd`"
|
||||||
|
|
||||||
echo -e "\nWelcome to esp-idf!\nAll done :3\n"
|
echo -e "\nWelcome to esp-idf!\nAll done :3\n"
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ arg=$1 # just rename the argument var for clarity with the functions
|
|||||||
|
|
||||||
# commands
|
# commands
|
||||||
if [ "$gitJobs" == "default" ]; then
|
if [ "$gitJobs" == "default" ]; then
|
||||||
gitCloneCmd="git clone --single-branch --depth 1 --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"
|
gitCloneCmd="git clone --depth 1 --recursive --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"
|
||||||
else
|
else
|
||||||
gitCloneCmd="git clone --single-branch --depth 1 --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"
|
gitCloneCmd="git clone --depth 1 --recursive --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# gitCloneCmd="git clone --recursive --single-branch --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"
|
# gitCloneCmd="git clone --recursive --single-branch --jobs $gitJobs --branch $gitBranch https://github.com/espressif/esp-idf $idfDir"
|
||||||
@@ -264,7 +264,7 @@ function testAppendAlias() {
|
|||||||
|
|
||||||
function handleAliasEnviron() {
|
function handleAliasEnviron() {
|
||||||
testAppendAlias "get_esp_tools" "alias get_esp_tools='. $exportScript'"
|
testAppendAlias "get_esp_tools" "alias get_esp_tools='. $exportScript'"
|
||||||
testAppendAlias "run_esp_cmd" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/esp-idf-tools-cmd.sh'"
|
testAppendAlias "run_esp_cmd" "alias run_esp_cmd='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/esp-idf-tools-cmd.sh'"
|
||||||
testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'"
|
testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'"
|
||||||
testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'"
|
testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'"
|
||||||
|
|
||||||
|
|||||||
@@ -1,50 +1,55 @@
|
|||||||
Modes:
|
Modes:
|
||||||
default:
|
default:
|
||||||
reinstalls non-interactively with no delays, logouts, or reboots
|
reinstalls non-interactively with no delays, logouts, or reboots
|
||||||
`bash esp-idf-tools-cmd.sh`
|
`run_esp_cmd`
|
||||||
|
|
||||||
test:
|
test:
|
||||||
tests the script. very fast. minimal actions taken. no reinstall is done
|
tests the script. very fast. minimal actions taken. no reinstall is done
|
||||||
`bash esp-idf-tools-cmd.sh test`
|
`run_esp_cmd test`
|
||||||
`bash esp-idf-tools-cmd.sh t`
|
`run_esp_cmd t`
|
||||||
|
|
||||||
retool:
|
retool:
|
||||||
reinstalls bins and export.sh, nothing else
|
reinstalls bins and export.sh, nothing else
|
||||||
`bash esp-idf-tools-cmd.sh retool`
|
`run_esp_cmd retool`
|
||||||
`bash esp-idf-tools-cmd.sh rt`
|
`run_esp_cmd rt`
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
runs noninteractively with forced user logout and automatic reboot, plus delays
|
runs noninteractively with forced user logout and automatic reboot, plus delays
|
||||||
`bash esp-idf-tools-cmd.sh cron`
|
`run_esp_cmd cron`
|
||||||
`bash esp-idf-tools-cmd.sh c`
|
`run_esp_cmd c`
|
||||||
|
|
||||||
|
update:
|
||||||
|
updates and installs latest without reboot or user logout
|
||||||
|
`run_esp_cmd update`
|
||||||
|
`run_esp_cmd u`
|
||||||
|
|
||||||
interactive:
|
interactive:
|
||||||
interactively installs/reinstalls esp-idf
|
interactively installs/reinstalls esp-idf
|
||||||
`bash esp-idf-tools-cmd.sh interactive`
|
`run_esp_cmd interactive`
|
||||||
`bash esp-idf-tools-cmd.sh i`
|
`run_esp_cmd i`
|
||||||
|
|
||||||
nuke:
|
nuke:
|
||||||
full delete and re-download and install
|
full delete and re-download and install
|
||||||
`bash esp-idf-tools-cmd.sh nuke`
|
`run_esp_cmd nuke`
|
||||||
`bash esp-idf-tools-cmd.sh n`
|
`run_esp_cmd n`
|
||||||
|
|
||||||
clearlogs:
|
clearlogs:
|
||||||
clear logs
|
clear logs
|
||||||
`bash esp-idf-tools-cmd.sh clearlogs`
|
`run_esp_cmd clearlogs`
|
||||||
`bash esp-idf-tools-cmd.sh clear`
|
`run_esp_cmd clear`
|
||||||
`bash esp-idf-tools-cmd.sh clean`
|
`run_esp_cmd clean`
|
||||||
`bash esp-idf-tools-cmd.sh cl`
|
`run_esp_cmd cl`
|
||||||
|
|
||||||
help:
|
help:
|
||||||
display this help text
|
display this help text
|
||||||
`bash esp-idf-tools-cmd.sh help`
|
`run_esp_cmd help`
|
||||||
`bash esp-idf-tools-cmd.sh h`
|
`run_esp_cmd h`
|
||||||
`bash esp-idf-tools-cmd.sh -h`
|
`run_esp_cmd -h`
|
||||||
`bash esp-idf-tools-cmd.sh --help`
|
`run_esp_cmd --help`
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
uninstall esp-idf
|
uninstall esp-idf
|
||||||
`bash esp-idf-tools-cmd.sh uninstall`
|
`run_esp_cmd uninstall`
|
||||||
|
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|||||||
Reference in New Issue
Block a user