Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions craft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ check_directory() {
init_hearthstone
else
pushd hearthstone
# Reinitialize ngdp if db is corrupt/empty
if [ ! -s .ngdp/keg.db ] || ! $NGDP_BIN fsck >/dev/null 2>&1; then
warn "keg database is empty or corrupt, reinitializing ..."
set_region
$NGDP_BIN init
$NGDP_BIN remote add http://${REGION}.patch.battle.net:1119/hsb
fi
fi

# Update procedure
Expand Down