From 809f0bc756330abd15e60e733c2b9fdbff37bd0b Mon Sep 17 00:00:00 2001 From: Nutomic Date: Fri, 2 Sep 2022 16:40:05 +0200 Subject: [PATCH] Include stable Lemmy tag (fixes #146) (#147) --- update-includes.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/update-includes.sh b/update-includes.sh index 12a005c..35f46c2 100755 --- a/update-includes.sh +++ b/update-includes.sh @@ -1,4 +1,15 @@ #!/bin/bash set -e -git clone https://github.com/LemmyNet/lemmy.git include --depth 1 \ No newline at end of file +LEMMY_VERSION=$(curl "https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/VERSION") +if [ ! -d "include/.git" ] +then + git clone https://github.com/LemmyNet/lemmy.git include + cd include +else + cd include + git checkout main + git pull +fi +git fetch --tags +git checkout "$LEMMY_VERSION" \ No newline at end of file