Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo for extraction it should be lbunzip2 #493

Merged
merged 1 commit into from
Apr 2, 2020
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions utils/download_sqlite_all.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ function download(callback) {
const generateCommand = (sqlite, directory) => {
let extract;
if (/\.db\.bz2$/.test(sqlite.name_compressed)) {
// Check if we have lbzip2 installed
if (commandExistsSync('lbzip2')) {
extract = 'lbzip2';
// Check if we have lbunzip2 installed
if (commandExistsSync('lbunzip2')) {
extract = 'lbunzip2';
} else {
extract = 'bunzip2';
}
Expand Down
4 changes: 2 additions & 2 deletions utils/sqlite_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ err() { echo -e "\e[31m[$1]\t\e[0m \e[91m$2\e[0m" >&2; }

# Check if we have lbzip2 (https://lbzip2.org/) installed
decompress_utility() {
if hash lbzip2 2>/dev/null; then
lbzip2 -d -f "${LOCAL_BZ2_PATH}" > "${LOCAL_DB_PATH}"
if hash lbunzip2 2>/dev/null; then
lbunzip2 -d -f "${LOCAL_BZ2_PATH}" > "${LOCAL_DB_PATH}"
else
bunzip2 -f "${LOCAL_BZ2_PATH}" > "${LOCAL_DB_PATH}"
fi
Expand Down