mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 18:58:23 +03:00
Revert "Do not use set -e
in helper shell scripts"
This reverts commit 0aeb88e663b9b19e173de20b132bef2189c6d7c9.
This commit is contained in:
parent
0ca63ddc84
commit
2a37479d60
@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Parse hledger's help and output all commands and command aliases in
|
||||
# parenthesis. Do not output single letter command aliases, it's not useful.
|
||||
set -uo pipefail
|
||||
set -euo pipefail
|
||||
|
||||
declare commands_help
|
||||
commands_help=$(hledger) || exit
|
||||
commands_help=$(hledger)
|
||||
{
|
||||
sed -rn 's/^\s+([a-z][-a-z]+)\s+.*/\1/p' <<< "$commands_help"
|
||||
sed -rn 's/^\s+[a-z][-a-z]+\s+\(([a-z][ ,a-z]+)\).*/\1/p' <<< "$commands_help" |
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Parse hledger's help and output long options. Do not propose single letter
|
||||
# completions. Options requiring an argument make that explicit by appending the
|
||||
# equal sign (=)
|
||||
set -uo pipefail
|
||||
set -euo pipefail
|
||||
|
||||
declare subcommand=${1:-}
|
||||
declare hledgerArgs=(--help)
|
||||
|
Loading…
Reference in New Issue
Block a user