diff options
author | nacho <nacho@ownyourbits.com> | 2018-09-21 09:15:50 +0300 |
---|---|---|
committer | nacho <nacho@ownyourbits.com> | 2018-09-22 08:48:00 +0300 |
commit | dabc17fb0736d2d0e01828f68dc6dec822d523d7 (patch) | |
tree | badbe15113f6d2961027196bb07df2fc9d596287 /bin/ncp-update | |
parent | 7a8c0e40f51295fc3ce3b65d3a256e7e77e38c4a (diff) |
build: fully local builds
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-x | bin/ncp-update | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ncp-update b/bin/ncp-update index b2bf6d72..8ade1f02 100755 --- a/bin/ncp-update +++ b/bin/ncp-update @@ -16,11 +16,12 @@ echo "No internet connectivity" exit 1 } - cd "$TMPDIR" + [[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build echo -e "Performing updates" ./update.sh && { + cd "$TMPDIR" VER=$( git describe --always --tags | grep -oP "v\d+\.\d+\.\d+" ) grep -qP "v\d+\.\d+\.\d+" <<< "$VER" && { # check format echo "$VER" > /usr/local/etc/ncp-version |