summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-20 00:59:48 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-20 00:59:48 -0500
commitb129824bfc9c5c85cadf98dfb724405d63dfc6c3 (patch)
tree3cc3e75d7178adc00b94849a06209ad11553130b /src/librefetch
parenta6ce111ab2fd71e0c13f5e165addeb18a4125f1e (diff)
normalize to use >&2 instead of /dev/stderr
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 87a55cd..5556ddd 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -161,7 +161,7 @@ main() {
dlcmd="${dlcmd//\%o/$(printf '%q' "$dst")}"
dlcmd="${dlcmd//\%u/$(printf '%q' "$src")}"
- { eval "$dlcmd"; } >> /dev/stderr && return 0
+ { eval "$dlcmd"; } >&2 && return 0
fi
# Mode: create #########################################################
@@ -173,7 +173,7 @@ main() {
export pkg_file=$dst
cd "$BUILDFILEDIR"
- "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >> /dev/stderr || return $?
+ "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >&2 || return $?
fi
}
@@ -235,15 +235,15 @@ parse_options() {
:;;
checksums|print) # don't take any extra arguments
if [[ ${#extra_opts[@]} != 0 ]]; then
- print "%s: found extra non-flag arguments: %s" "$cmd" "${extra_opts[*]}" >> /dev/stderr
- usage >> /dev/stderr
+ print "%s: found extra non-flag arguments: %s" "$cmd" "${extra_opts[*]}" >&2
+ usage >&2
return 1
fi
;;
*download*|*create*) # take 1 or 2 extra arguments
if [[ ${#extra_opts[@]} != 1 ]] && [[ ${#extra_opts[@]} != 2 ]]; then
- print "%s: %d non-flag arguments found, expected 1 or 2: %s" "$cmd" ${#extra_opts[@]} >> /dev/stderr
- usage >> /dev/stderr
+ print "%s: %d non-flag arguments found, expected 1 or 2: %s" "$cmd" ${#extra_opts[@]} >&2
+ usage >&2
return 1
fi
;;