Pinnwand installer: removed surplous 'exit'

This commit is contained in:
Forza 2024-11-17 09:59:37 +01:00
parent 7f45795004
commit 3e95867a71

View File

@ -40,7 +40,7 @@ if [ "$USE_LOCAL_SRC" = "true" ]; then
else
# Detect the latest tag if GIT_REF is not set
GIT_REF="${GIT_REF:-}"
if [ -z "$GIT_REF" ]; then
echo "GIT_REF is not set. Detecting the latest tag from remote..."
GIT_REF=$(get_latest_tag_remote)
@ -61,14 +61,13 @@ else
# Reset the repository to ensure a clean state
git fetch -q --all || { echo "Failed to fetch updates from repository."; exit 1; }
git reset -q --hard "$GIT_REF" || { echo "Failed to reset to $GIT_REF."; exit 1; }
popd > /dev/null
fi
fi
echo "Source preparation complete."
exit
# Check if the virtual environment exists and is valid; create it if necessary
if [ ! -d "$VENV_DIR" ]; then
echo "Virtual environment not found. Creating it now..."
@ -89,4 +88,4 @@ echo "Installing/Upgrading Pinnwand from source..."
# Return to the original directory
popd || { echo "Failed to return to original directory."; exit 1; }
echo "Pinnwand installation/upgrade process completed successfully."
echo "Pinnwand installation/upgrade process completed successfully."