mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-21 11:51:11 +00:00
15 lines
No EOL
315 B
Bash
Executable file
15 lines
No EOL
315 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
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" |