Compare commits

...

2 Commits

Author SHA1 Message Date
1ca1c70ad1 add auto install for unzip 2025-12-03 14:52:37 +00:00
30a80fb986 add auto install for unzip 2025-12-03 14:52:25 +00:00

View File

@@ -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
fi
echo "Extracting compressed file ..."
sudo unzip "$LOCAL_PATH" -d .
exit 0