summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
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
;;