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:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-08-25 13:41:56 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-08-25 13:41:56 +0300
commitc072a9c4d76fbcfdfca54e92cf0ccc1df7c3850b (patch)
treeec04a443dc8c9afec49fd2dc6692bfcf28ff7187 /bin
parentb88ce441e4fa07230118ecb78d6e0bae1ed32868 (diff)
ncp-update: Only checkout pr after moving to git directory
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 $?