Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>2022-08-21 11:44:11 +0300
committerGitHub <noreply@github.com>2022-08-21 11:44:11 +0300
commit6723173576924610ed78a030f621a973f2c6df52 (patch)
tree577dfee5b313e2a8b5669b6f3fd86d5040689b0b
parenta3820f3294178bcc22c52357e2a6d4250f2a856f (diff)
ncp-update: Add support for PRsfeature/ncp-update-support-prs
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
-rwxr-xr-xbin/ncp-update8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ncp-update b/bin/ncp-update
index 25f1ed62..abc72d44 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -19,6 +19,14 @@
exit 1
}
+ [[ -z "$2" ]] || {
+ git fetch origin "$2" || {
+ echo "Error: Could not fetch $2"
+ exit 1
+ }
+ git checkout FETCH_HEAD
+ }
+
[[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build
echo -e "Performing updates"