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:
-rw-r--r--etc/library.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/library.sh b/etc/library.sh
index 4cfccbe4..12aff17b 100644
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -193,10 +193,9 @@ install_template() {
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
else
{ bash "/usr/local/etc/ncp-templates/$template" > "$target"; } 2>&1 || \
- {
- [[ "$3" == "--allow-fallback" ]] && \
- { bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
- }
+ if [[ "$3" == "--allow-fallback" ]]; then
+ { bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
+ fi
fi
} || {
echo "ERROR: Could not generate $target from template $template. Rolling back..."