diff options
-rw-r--r-- | etc/library.sh | 7 |
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..." |