This commit is contained in:
2024-11-12 05:12:47 -07:00
parent e611fdee7c
commit 329260b71c
2 changed files with 11 additions and 5 deletions
+10 -4
View File
@@ -1,19 +1,25 @@
#!/bin/bash #!/bin/bash
# script to replace the .custom_bins and add-to-expport.txt without other reinstall # 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" echo -e "\ndeleting old export.sh\n"
rm $HOME/esp/esp-idf/export.sh # ~/esp/esp-idf/export.sh.bak.2 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" 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 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" echo -e "\nAppending new add-to-export-sh.txt to export.sh\n"
cat add-to-export.txt >> $HOME/esp/esp-idf/export.sh cat $runningDir/add-to-export-sh.txt >> $HOME/esp/esp-idf/export.sh
echo -e "\nDeleting .custom_bins dir\n" 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" 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/* chmod +x $HOME/esp/.custom_bins/*
echo -e "\nAll done :3\n" echo -e "\nAll done :3\n"
+1 -1
View File
@@ -1 +1 @@
56-dev.3 56-dev.4