maj template shell
This commit is contained in:
parent
ee9dfbdd24
commit
b8d8f56569
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue