diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index 5ea3ff8..884e7f0 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -182,10 +182,14 @@ function handleExport() { # restoreExportScriptChk=$? # fi - writeToLog "Deleting $exportBackupScript" - rm -f $exportBackupScript - returnStatus - rmExportBackupChk=$? + if [ -f $exportBackupScript ]; then + writeToLog "Deleting $exportBackupScript" + rm -f $exportBackupScript + returnStatus + rmExportBackupChk=$? + else + writeToLog "$exportBackupScript not found, skipping delete\n" + fi writeToLog "Backing up $exportScript to $exportBackupScript" cp $exportScript $exportBackupScript diff --git a/todo.txt b/todo.txt index bafe6cb..17a91e4 100644 --- a/todo.txt +++ b/todo.txt @@ -29,7 +29,7 @@ x standardize the capatilization and format and content of notes x bug: duplicate export added to export.sh x involves testExport prolly lol x issue be in retool - +x remove the log writes at entry functions testan: x bash reinstall-esp-idf.sh help diff --git a/version.txt b/version.txt index a616105..59a2d3b 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -6-prerelease6.1 \ No newline at end of file +6-prerelease6.2 \ No newline at end of file