mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Fixed a few error messages.
This commit is contained in:
parent
2594270fdf
commit
ec61dbd802
2 changed files with 3 additions and 3 deletions
|
|
@ -19,12 +19,12 @@ TRAP_SIGNALS=(
|
|||
# Adds a function to a list to be called when a trap is triggered.
|
||||
function add-zsh-trap() {
|
||||
if (( $# < 2 )); then
|
||||
print "usage: $0 type function"
|
||||
print "usage: $0 type function" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -z "$TRAP_SIGNALS[(r)$1]" ]]; then
|
||||
print "$0: unknown signal: $1"
|
||||
print "$0: unknown signal: $1" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue