Skip to content

Commit

Permalink
install unzip dependency via apt
Browse files Browse the repository at this point in the history
  • Loading branch information
germ3n committed Jan 20, 2025
1 parent 909e06f commit adc2559
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tig-native/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ if [ ! -d "$SCRIPT_DIR/$LLVM_DIR" ]; then

mkdir -p "$SCRIPT_DIR/$LLVM_DIR"

if ! command -v unzip >/dev/null 2>&1; then
echo "Installing unzip..."
sudo apt-get update && sudo apt-get install -y unzip
if [ $? -ne 0 ]
then
echo "Error: Failed to install unzip"
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 adc2559

Please sign in to comment.