maj template shell
This commit is contained in:
parent
ee9dfbdd24
commit
b8d8f56569
|
@ -174,6 +174,8 @@ OPTIONS"
|
||||||
elif [ "$type" == manual ]; then
|
elif [ "$type" == manual ]; then
|
||||||
echo >"$file" '#!/bin/bash
|
echo >"$file" '#!/bin/bash
|
||||||
'"$modeline"'
|
'"$modeline"'
|
||||||
|
source /etc/ulib || exit 1
|
||||||
|
urequire DEFAULTS
|
||||||
|
|
||||||
function display_help() {
|
function display_help() {
|
||||||
uecho "$scriptname:
|
uecho "$scriptname:
|
||||||
|
@ -184,10 +186,6 @@ USAGE
|
||||||
OPTIONS"
|
OPTIONS"
|
||||||
}
|
}
|
||||||
|
|
||||||
source /etc/ulib &&
|
|
||||||
urequire DEFAULTS ||
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
parse_opts "${PRETTYOPTS[@]}" \
|
parse_opts "${PRETTYOPTS[@]}" \
|
||||||
--help '\''$exit_with display_help'\'' \
|
--help '\''$exit_with display_help'\'' \
|
||||||
@ args -- "$@" && set -- "${args[@]}" || die "$args"
|
@ args -- "$@" && set -- "${args[@]}" || die "$args"
|
||||||
|
|
Loading…
Reference in New Issue