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:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-update5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ncp-update b/bin/ncp-update
index 039c6f76..04033ff1 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -18,6 +18,9 @@
echo "No internet connectivity"
exit 1
}
+
+ [[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build
+
[[ -z "$2" ]] || {
git fetch origin "$2" || {
echo "Error: Could not fetch $2"
@@ -26,8 +29,6 @@
git checkout FETCH_HEAD
}
- [[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build
-
echo -e "Performing updates"
./update.sh || exit $?