Skip to content

Commit

Permalink
[fix] import_snapshot dir (starcoinorg#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangying000 committed Jul 22, 2022
1 parent 4359381 commit 31dd351
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/import_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function import_snapshot() {

download "$net" "$from_dir"

./starcoin_db_exporter apply-snapshot -i "$from_dir" -n "$net" -o "$to_dir"
case_status=$?
if [ $case_status -ne 0 ]; then
echo -e "apply-snapshot $net $from_dir fail"
exit $case_status
fi
./starcoin_db_exporter apply-snapshot -i "$from_dir"/snapshot -n "$net" -o "$to_dir"
case_status=$?
if [ $case_status -ne 0 ]; then
echo -e "apply-snapshot $net $from_dir fail"
exit $case_status
fi
echo -e "$net apply-snapshot succ"
}

Expand Down

0 comments on commit 31dd351

Please sign in to comment.