From adc2559e71551ca885488e5047ed18f545e84307 Mon Sep 17 00:00:00 2001 From: germ3n Date: Mon, 20 Jan 2025 23:02:50 +0100 Subject: [PATCH] install unzip dependency via apt --- tig-native/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tig-native/build.sh b/tig-native/build.sh index c746723b..e5be840a 100755 --- a/tig-native/build.sh +++ b/tig-native/build.sh @@ -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