maj template shell

This commit is contained in:
Jephté Clain 2013-11-21 13:38:57 +04:00
parent ee9dfbdd24
commit b8d8f56569
1 changed files with 2 additions and 4 deletions

View File

@ -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"