diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-23 02:24:53 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-23 02:25:07 +0300 |
commit | d3c735426a6565d0d9a736dde0346b2d88f21a95 (patch) | |
tree | dcf28282b38904ce457ad69168a84db84ba79cff /bin/ncp-update | |
parent | 36a803f021b45864c6e609fd8c4eef1df6d75aa1 (diff) |
update: print info firstv0.46.31
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-x | bin/ncp-update | 6 |
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 |