diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-08-25 13:41:56 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-08-25 13:41:56 +0300 |
commit | c072a9c4d76fbcfdfca54e92cf0ccc1df7c3850b (patch) | |
tree | ec04a443dc8c9afec49fd2dc6692bfcf28ff7187 /bin | |
parent | b88ce441e4fa07230118ecb78d6e0bae1ed32868 (diff) |
ncp-update: Only checkout pr after moving to git directory
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ncp-update | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ncp-update b/bin/ncp-update index 039c6f76..04033ff1 100755 --- a/bin/ncp-update +++ b/bin/ncp-update @@ -18,6 +18,9 @@ echo "No internet connectivity" exit 1 } + + [[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build + [[ -z "$2" ]] || { git fetch origin "$2" || { echo "Error: Could not fetch $2" @@ -26,8 +29,6 @@ git checkout FETCH_HEAD } - [[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build - echo -e "Performing updates" ./update.sh || exit $? |