1
0
Fork 0

Zsh: Remove useless redirections in functions

This commit is contained in:
tastytea 2022-03-29 00:21:52 +02:00
parent 4202e0ac9c
commit e027467bf3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# Equivalent to `zmv "${dir}/(*)" '${dir}/${1:l}'`
if [[ ${ARGC} -ne 1 ]]; then
print -u 2 "Usage: ${0} <directory>" >&2
print -u 2 "Usage: ${0} <directory>"
return 1
fi
local dir="${1}"

View File

@ -2,7 +2,7 @@
# Put files on a webspace via sftp
if [[ ${ARGC} -eq 0 ]]; then
print -u 2 "Usage: ${0} <file> …" >&2
print -u 2 "Usage: ${0} <file> …"
return 1
fi