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:
authornachoparker <nacho@ownyourbits.com>2017-12-17 01:10:55 +0300
committernachoparker <nacho@ownyourbits.com>2017-12-17 01:14:16 +0300
commitf043feef9cc3533854b2c3cff81be2992e40497b (patch)
tree6a7f0cc3871a5cdcfc2ccd9f1e86a67231645c13 /etc/library.sh
parent85c872255b991eb90466d3293aef970504a52790 (diff)
build: cleanup adjustments
Diffstat (limited to 'etc/library.sh')
-rwxr-xr-xetc/library.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/library.sh b/etc/library.sh
index 06e19650..31636d28 100755
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -151,10 +151,11 @@ function cleanup_script()
cd /usr/local/etc/nextcloudpi-config.d/ || return 1
unset cleanup
source ./"$SCRIPT"
- [[ $( type -t cleanup ) == function ]] && {
+ if [[ $( type -t cleanup ) == function ]]; then
cleanup
return $?
- }
+ fi
+ return 0
)
}