We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4500cd7 commit b7eaf0fCopy full SHA for b7eaf0f
src/test/update.sh
@@ -5,6 +5,8 @@
5
#
6
# shellcheck disable=SC1090,SC1091,SC2015,SC2034
7
8
+set -x
9
+
10
root="$1"
11
[[ -n "$root" && ! "${root:0:2}" =~ -(m|d) ]] && shift || root="."
12
[ -d "$root" ] || { gh auth status &>/dev/null && gh repo clone "${GITHUB_OWNER:-ipitio}/${GITHUB_REPO:-backage}" "$root" -- --depth=1 -b "$GITHUB_BRANCH" --single-branch || git clone --depth=1 -b "$GITHUB_BRANCH" --single-branch "https://$([ -n "$GITHUB_TOKEN" ] && echo "$GITHUB_TOKEN@" || echo "")github.com/${GITHUB_OWNER:-ipitio}/${GITHUB_REPO:-backage}.git" "$root"; }
0 commit comments