Skip to content

Commit

Permalink
fix(lbzip): for decompressing it should be lbunzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit authored and missinglink committed Apr 2, 2020
1 parent 5d1098d commit fa17e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit fa17e35

Please sign in to comment.