Skip to content

Commit

Permalink
ncp-check-version: Check for docker-stable branch if running docker
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
theCalcaholic committed Jul 12, 2023
1 parent ef9b5a0 commit 5d0d22b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/ncp-check-version
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
TMPDIR="$( mktemp -d /tmp/ncp-check.XXXXXX || ( echo "Failed to create temp dir. Exiting" >&2; exit 1 ) )"
trap "rm -rf \"${TMPDIR}\"; exit 0" 0 1 2 3 15

git clone --depth 20 -q --bare https://github.com/nextcloud/nextcloudpi.git "$TMPDIR" || {
BRANCH="master"
is_docker && BRANCH="docker-stable"

git clone -b "$BRANCH" --depth 20 -q --bare https://github.com/nextcloud/nextcloudpi.git "$TMPDIR" || {
echo "The git clone command failed: No connectivity to https://github.com ?" >&2
exit 1
}
Expand Down

0 comments on commit 5d0d22b

Please sign in to comment.