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:
Diffstat (limited to 'build-devel.sh')
-rw-r--r--build-devel.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/build-devel.sh b/build-devel.sh
index d8c0dd1d..489f6bd0 100644
--- a/build-devel.sh
+++ b/build-devel.sh
@@ -31,18 +31,19 @@ install()
cd /tmp/ncp-update-tmp || return 1
echo -e "Performing updates"
- ./update.sh
+ ./update.sh && {
- 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
- echo "$VER" > /var/run/.ncp-latest-version
+ 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
+ echo "$VER" > /var/run/.ncp-latest-version
+ }
+ echo -e "NextCloudPi updated to version $VER"
}
cd / || return 1
rm -rf /tmp/ncp-update-tmp
- echo -e "NextCloudPi updated to version $VER"
}
cleanup() { :; }