mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Standardized error messages.
This commit is contained in:
parent
28da8f916b
commit
95c29bada8
10 changed files with 33 additions and 29 deletions
|
|
@ -1,11 +1,11 @@
|
|||
local config_file="$HOME/.wakeonlan/$1"
|
||||
if [[ ! -f "$config_file" ]]; then
|
||||
print "$0: $1: There is no such device file." >&2
|
||||
print "$0: no such device file: $1" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
if (( ! $+commands[wakeonlan] )); then
|
||||
print "$0: Can't find wakeonlan. Is it installed?" >&2
|
||||
print "$0: command not found: wakeonlan" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue