From 3ab4882d638335e1fdd46469a73d916b338f065a Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Mon, 18 Aug 2025 21:21:18 -0600 Subject: [PATCH] m0ar fizax --- esp-idf-tools-cmd.sh | 6 ++++-- todo.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/esp-idf-tools-cmd.sh b/esp-idf-tools-cmd.sh index 77642dc..57538bc 100644 --- a/esp-idf-tools-cmd.sh +++ b/esp-idf-tools-cmd.sh @@ -304,8 +304,9 @@ function testAppendAlias() { } function handleAliasEnviron() { + cp $rcFile $rcFile.bak # backup da thing first frong # the pretty comment and such first - testAppendAlias "# esp-idf-tools aliases" "\n# esp-idf-tools\n" + testAppendAlias "# esp-idf-tools aliases" "\n# esp-idf-tools" testAppendAlias "ESPIDFTOOLS_INSTALLDIR" "export ESPIDFTOOLS_INSTALLDIR=\"$defaultInstallDir\"" testAppendAlias "get-esp-tools" "alias get-esp-tools='. $exportScript'" testAppendAlias "run-esp-cmd" "alias run-esp-cmd='bash $runningDir/esp-idf-tools-cmd.sh'" @@ -471,7 +472,8 @@ function handleChk() { totalErrorLoad=$(($pkgInstallChk+$gitChk+$gitChk+$installChk+$toolsInstallChk+$exportSedHashChk+$exportCatChk+$exportSedReturnChk+$aliasRunEspReinstallChk+$aliasEspMonitorchk+$aliasEspLogsChk+$aliasInstallDirChk+$warnChk+$logoutChk+$gitLogChk+$gitHashChk+$rmIdfDirChk+$rmEspressifChk+$mkInstallDirChk+$restoreExportScriptChk+$rmExportScriptChk+$backupExportScriptChk+$customBinExecChk+$rmCustomBinChk+$sleepChk+$rmExportBackupChk)) - if [[ $totalErrorLoad < 2 ]]; then + # fuckin make dis thing frickin work proper lmfao + if [[ $totalErrorLoad < 3 ]]; then writeToLog "Installed Successfully, total error load: $totalErrorLoad" else writeToLog "Install FAILED! Dumping return codes:\n" diff --git a/todo.txt b/todo.txt index 8975d2b..a94b64a 100644 --- a/todo.txt +++ b/todo.txt @@ -7,6 +7,7 @@ esp-idf-cools-cmd.sh get update properly workan frong some kinda more meaningful status indication instead of endless terminal spam? think i brope interaCTIVE lol + do not show failure message on python returning 1 x install.sh for curl -s github/install.sh | exec $SHELL installation make it handle shit like detecting existing dirs and erroring