From 76897f9f597a9b3ae6d1b824131d7c5d03c563ce Mon Sep 17 00:00:00 2001 From: packetcat Date: Fri, 1 Dec 2023 20:17:32 +0000 Subject: [PATCH] Rename file, add update in else and fix bug with ! -d not being present --- install-tangerineui.sh => tangerineui.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename install-tangerineui.sh => tangerineui.sh (83%) diff --git a/install-tangerineui.sh b/tangerineui.sh similarity index 83% rename from install-tangerineui.sh rename to tangerineui.sh index 726e86e..cdb2a95 100644 --- a/install-tangerineui.sh +++ b/tangerineui.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# This script installs the Tangerine UI theme. +# This script installs/updates the Tangerine UI theme. # Author - packetcat # Tangerine UI repository directory @@ -8,9 +8,13 @@ REPO="$HOME/TangerineUI-for-Mastodon" INSTALLDIR="$HOME/live" # Clone Tangerine UI repository if it doesn't exist +# If repo exists, just pull updates. -if [ -d "$REPO" ]; then +if [ ! -d "$REPO" ]; then git clone https://github.com/nileane/TangerineUI-for-Mastodon.git $REPO +else + cd $REPO + git pull fi # Copy Tangerine UI files into your Mastodon install's styles directory