We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2983a1 commit 4e790e4Copy full SHA for 4e790e4
etc/library.sh
@@ -193,10 +193,9 @@ install_template() {
193
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
194
else
195
{ bash "/usr/local/etc/ncp-templates/$template" > "$target"; } 2>&1 || \
196
- {
197
- [[ "$3" == "--allow-fallback" ]] && \
198
- { bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
199
- }
+ if [[ "$3" == "--allow-fallback" ]]; then
+ { bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
+ fi
200
fi
201
} || {
202
echo "ERROR: Could not generate $target from template $template. Rolling back..."
0 commit comments