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
path: root/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-08-16 01:37:50 +0300
committernachoparker <nacho@ownyourbits.com>2017-08-16 01:37:50 +0300
commit8f349c938f614e3157656d0a0a473e5a8a93eb56 (patch)
tree417ee9d2957a60972039686841bacea750cde777 /bin
parent96685c2928597c5b0499ac782644581fc5903abf (diff)
faster remote updates and version checksv0.20.4
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-check-version2
-rwxr-xr-xbin/ncp-update2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp-check-version b/bin/ncp-check-version
index cc0936f0..3cb25c18 100755
--- a/bin/ncp-check-version
+++ b/bin/ncp-check-version
@@ -6,7 +6,7 @@
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
-git clone -q --bare https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-check-tmp || exit 1
+git clone --depth 20 -q --bare https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-check-tmp || exit 1
cd /tmp/ncp-check-tmp
VER=$( git describe --always --tags | grep -oP "v\d+\.\d+\.\d+" )
diff --git a/bin/ncp-update b/bin/ncp-update
index 8330cf06..25662956 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -7,7 +7,7 @@
ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; exit 1; }
echo -e "Downloading updates"
rm -rf /tmp/ncp-update-tmp
- git clone -q https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-update-tmp || exit 1
+ git clone --depth 20 -q https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-update-tmp || exit 1
cd /tmp/ncp-update-tmp
echo -e "Performing updates"