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:
authornachoparker <nacho@ownyourbits.com>2018-02-23 02:24:53 +0300
committernachoparker <nacho@ownyourbits.com>2018-02-23 02:25:07 +0300
commitd3c735426a6565d0d9a736dde0346b2d88f21a95 (patch)
treedcf28282b38904ce457ad69168a84db84ba79cff /bin/ncp-update
parent36a803f021b45864c6e609fd8c4eef1df6d75aa1 (diff)
update: print info firstv0.46.31
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-xbin/ncp-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ncp-update b/bin/ncp-update
index 60141560..9b90b054 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -5,12 +5,12 @@
{
[ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }
+ BRANCH="${1:-master}"
+ [[ "$BRANCH" != "master" ]] && echo "INFO: updating to development branch '$BRANCH'"
+
echo -e "Downloading updates"
rm -rf /tmp/ncp-update-tmp
- BRANCH="${1:-master}"
- [[ "$BRANCH" != "master" ]] && echo "INFO: updating to development branch $BRANCH"
-
git clone --depth 20 -b "$BRANCH" -q https://github.com/nextcloud/nextcloudpi.git /tmp/ncp-update-tmp || {
echo "No internet connectivity"
exit 1