Skip to content

Commit d9cee78

Browse files
committed
ncp-update, update.sh: Inherit DBG flag from install script
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
1 parent 99a3c45 commit d9cee78

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

bin/ncp-update

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# update latest NextCloudPi code from github
44

5+
[[ -z "$DBG" ]] || set -$DBG
6+
57
{
68
[ "$(id -u)" -ne 0 ] && { printf "Must be run as root. Try 'sudo $0'\n"; exit 1; }
79

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
source /usr/local/etc/library.sh
1212

13-
set -e
13+
set -e$DBG
1414

1515
CONFDIR=/usr/local/etc/ncp-config.d/
1616
UPDATESDIR=updates

0 commit comments

Comments
 (0)