You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
367 B
17 lines
367 B
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
REPO_URL=https://git.sr.ht/~cadence/bibliogram
|
|
REPO_DIR_PATH=bibliogram
|
|
|
|
# If repo exists update, else clone it
|
|
if [ -d "$REPO_DIR_PATH" ]; then
|
|
# Save the root dir path, enter the repo, pull new changes and come back
|
|
ROOT_DIR=$(pwd)
|
|
cd "$REPO_DIR_PATH"
|
|
git pull
|
|
cd "$ROOT_DIR"
|
|
else
|
|
git clone "$REPO_URL" "$REPO_DIR_PATH"
|
|
fi
|
|
|