From b8d8f5656982fdf74bcf77665a1df3e0a1e9e7a8 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Thu, 21 Nov 2013 13:38:57 +0400 Subject: [PATCH] maj template shell --- lib/templates/shell | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/templates/shell b/lib/templates/shell index 4706e41..5aad6db 100755 --- a/lib/templates/shell +++ b/lib/templates/shell @@ -174,6 +174,8 @@ OPTIONS" elif [ "$type" == manual ]; then echo >"$file" '#!/bin/bash '"$modeline"' +source /etc/ulib || exit 1 +urequire DEFAULTS function display_help() { uecho "$scriptname: @@ -184,10 +186,6 @@ USAGE OPTIONS" } -source /etc/ulib && -urequire DEFAULTS || -exit 1 - parse_opts "${PRETTYOPTS[@]}" \ --help '\''$exit_with display_help'\'' \ @ args -- "$@" && set -- "${args[@]}" || die "$args"