diff options
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 $? |