From 329260b71cda2513980e1ce242f10778bc952d96 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Tue, 12 Nov 2024 05:12:47 -0700 Subject: [PATCH] sert --- retool.sh | 14 ++++++++++---- version.txt | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/retool.sh b/retool.sh index 085fd06..bc4cb84 100644 --- a/retool.sh +++ b/retool.sh @@ -1,19 +1,25 @@ #!/bin/bash # script to replace the .custom_bins and add-to-expport.txt without other reinstall + +runningDir="$( cd "$( dirname "$0" )" && pwd )" +scriptVers=$(cat $runningDir/version.txt) # make sure version.txt does NOT have newline + +echo -e "Retoolan~ Version: " + echo -e "\ndeleting old export.sh\n" rm $HOME/esp/esp-idf/export.sh # ~/esp/esp-idf/export.sh.bak.2 echo -e "\nReplacing original export.sh from export.sh.bak\n" cp $HOME/esp/esp-idf/export.sh.bak $HOME/esp/esp-idf/export.sh -echo -e "\nAppending new add-to-export.txt to export.sh\n" -cat add-to-export.txt >> $HOME/esp/esp-idf/export.sh +echo -e "\nAppending new add-to-export-sh.txt to export.sh\n" +cat $runningDir/add-to-export-sh.txt >> $HOME/esp/esp-idf/export.sh echo -e "\nDeleting .custom_bins dir\n" -rm -rf $HOME/esp/.custom_bins +rm -rf $HOME/esp/.custom_bin echo -e "\nCoppying new custom_bins and making them executable\n" -cp -r custom_bins ~/esp/.custom_bins +cp -r $runningDir/custom_bins ~/esp/.custom_bins chmod +x $HOME/esp/.custom_bins/* echo -e "\nAll done :3\n" \ No newline at end of file diff --git a/version.txt b/version.txt index 4ef6660..3a91b27 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -56-dev.3 \ No newline at end of file +56-dev.4 \ No newline at end of file