From 3e95867a71dc551a521523404fbe91cde74fdf0e Mon Sep 17 00:00:00 2001 From: Forza Date: Sun, 17 Nov 2024 09:59:37 +0100 Subject: [PATCH] Pinnwand installer: removed surplous 'exit' --- pinnwand/pinnwand-installer.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pinnwand/pinnwand-installer.sh b/pinnwand/pinnwand-installer.sh index 7de90da..6f3d10b 100755 --- a/pinnwand/pinnwand-installer.sh +++ b/pinnwand/pinnwand-installer.sh @@ -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." \ No newline at end of file +echo "Pinnwand installation/upgrade process completed successfully."