diff --git a/gitshit b/gitshit new file mode 100755 index 0000000..8e8481f --- /dev/null +++ b/gitshit @@ -0,0 +1,10 @@ +set -e # fail on error +if [ -z "$1" ]; then + message=`date +%s` +else + message="$@" +fi + +git add . +git commit -m "$message" +git push \ No newline at end of file diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index 1fb2891..10a3817 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -603,6 +603,22 @@ elif [[ "$arg" == "cron" || "$arg" == "c" ]]; then # full install with warn, sle exit +elif [[ "$arg" == "update" || "$arg" == "u" ]]; then # update without logouts or reboot + action="UPDATE" + # sleepMins=3 + idfGet="update" + sleepMins=0 + + handleStart + handleClearInstallLog + handleSetupEnvironment + handleCustomBins + handleDownloadInstall + handleExport + handleEnd + + exit + elif [[ "$arg" == "clearlogs" || "$arg" == "cl" || "$arg" == "clear" || "$arg" == "clean" ]]; then # clear logs handleEmptyLogs @@ -612,8 +628,6 @@ elif [[ "$arg" == "nuke" || "$arg" == "n" ]]; then # clear logs action="REINSTALL (NUKE)" idfGet="download" - - handleStart handleClearInstallLog handleSetupEnvironment