diff options
author | Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> | 2022-08-21 11:44:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 11:44:11 +0300 |
commit | 6723173576924610ed78a030f621a973f2c6df52 (patch) | |
tree | 577dfee5b313e2a8b5669b6f3fd86d5040689b0b | |
parent | a3820f3294178bcc22c52357e2a6d4250f2a856f (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-x | bin/ncp-update | 8 |
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" |