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:
authorTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-03-24 22:02:37 +0300
committerTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-04-08 10:36:01 +0300
commitd9cee78384e82f92fc2372b07e9a0d7da5b1b926 (patch)
tree0f9db82e1f0b461453a70fe0794fa28d0ce0c251 /bin/ncp-update
parent99a3c45592abc4937b12f2f93b0e81a6aa3fd97d (diff)
ncp-update, update.sh: Inherit DBG flag from install script
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-xbin/ncp-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ncp-update b/bin/ncp-update
index 15752f6b..25f1ed62 100755
--- a/bin/ncp-update
+++ b/bin/ncp-update
@@ -2,6 +2,8 @@
# update latest NextCloudPi code from github
+[[ -z "$DBG" ]] || set -$DBG
+
{
[ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }