mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
delete dir when fail
This commit is contained in:
parent
ca77bbacce
commit
7c44275e01
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ createdCorerct=$(sudo ls /mnt/hdd/bitcoin/test.txt | grep -c 'test.txt')
|
|||
sudo rm /home/bitcoin/.bitcoin/test.txt
|
||||
if [ ${createdCorerct} -eq 0 ]; then
|
||||
sudo rm -rf /mnt/hdd/bitcoin
|
||||
sudo rm -rf /home/bitcoin/.bitcoin
|
||||
echo "FAILED: sudo ln -s /mnt/hdd/bitcoin /home/bitcoin/.bitcoin"
|
||||
echo "Press ENTER to get back to menu ..."
|
||||
read key
|
||||
|
|
Loading…
Add table
Reference in a new issue