From 30a80fb986310d60424b7e7e7741afd2289f4fe5 Mon Sep 17 00:00:00 2001 From: anorien90 Date: Wed, 3 Dec 2025 14:52:25 +0000 Subject: [PATCH] add auto install for unzip --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index d368010..a9b9efc 100755 --- a/setup.sh +++ b/setup.sh @@ -24,6 +24,13 @@ if [ -z "$INSTALL_GITEA" ] || [[ "$INSTALL_GITEA" != "y" && "$INSTALL_GITEA" != exit 0 elif [[ "$LOCAL_PATH" == *.zip ]]; then + # check if unzip is installed + if ! command -v unzip &> /dev/null; then + echo "unzip could not be found, installing it ..." + sudo apt-get update + sudo apt-get install unzip -y + fi + echo "Extracting compressed file ..." sudo unzip "$LOCAL_PATH" -d . exit 0