olivetin/var/helper-actions/olivetin-get-git-repo

7 lines
87 B
Bash
Executable File

#!/usr/bin/env bash
REPO=$1
DEST=$2
git -C "$DEST" pull || git clone "$REPO" "$DEST"