Skip to content

Commit

Permalink
also install zstd dependcy if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
germ3n committed Jan 20, 2025
1 parent 823c1d6 commit 1f3b82b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tig-native/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ if [ ! -d "$SCRIPT_DIR/$LLVM_DIR" ]; then
fi
fi

if ! command -v zstd >/dev/null 2>&1
then
echo "Installing zstd..."
sudo apt-get update && sudo apt-get install -y zstd
if [ $? -ne 0 ]
then
echo "Error: Failed to install zstd"
exit 1
fi
fi

unzip "$SCRIPT_DIR/$LLVM_ARCHIVE.zip" -d "$SCRIPT_DIR/$LLVM_DIR"
if [ $? -ne 0 ]
then
Expand Down

0 comments on commit 1f3b82b

Please sign in to comment.