소스 검색

Update tari.sh

MoeClub 6 달 전
부모
커밋
bc1ad84723
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tari.sh

+ 2 - 2
tari.sh

@@ -37,8 +37,8 @@ cd "$(dirname `readlink -f "$0"`)" || exit 1
 [ "$AMOUNT" == "new" ] && {
   walletFile="./wallet_seed.txt"
   ./minotari_console_wallet --non-interactive-mode --network Mainnet --base-path "${BASE}" --seed-words-file-name "${walletFile}" --password "${PASSWD}"
-  [ $? -eq 0 ] || exit 1
-  ./minotari_console_wallet --non-interactive-mode --network Mainnet --base-path "${BASE}" -p base_node.mining_enabled=false -p wallet.grpc_enabled=false --password "${PASSWD}" --recovery --seed-words `cat "${walletFile}"`
+  [ $? -eq 0 ] && rm -rf "${BASE}" || exit 1
+  ./minotari_console_wallet --non-interactive-mode --network Mainnet --base-path "${BASE}" -p base_node.mining_enabled=false -p wallet.grpc_enabled=false --password "${PASSWD}" --recovery --seed-words "$(cat ${walletFile})"
   exit "$?"
 }