summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-13 12:36:41 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-13 12:36:41 -0400
commite88534b631c3df7d25efbcc4fe9e4910b2a276eb (patch)
tree80755ad20fedd93634c7396dbaf49150017f5646 /src/librefetch
parent68e05b4f7a45f58531b26ffa8bfab59b65439cb4 (diff)
librefetch: careful with stdout, might be called by `makepkg -g`
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 6a05cb9..25bde43 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -123,7 +123,7 @@ main() {
local dlcmd="${DOWNLOADER}"
dlcmd="${dlcmd//\%o/\"$dst\"}"
dlcmd="${dlcmd//\%u/\"$url\"}"
- { eval "$dlcmd"; } && return 0
+ { eval "$dlcmd"; } >> /dev/stderr && return 0
fi
# Mode: create #########################################################
@@ -133,7 +133,7 @@ main() {
export PKGEXT=${PKGEXT%.part}
export PKGDEST=$startdir
export pkg_file=$dst
- "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild"
+ "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >> /dev/stderr
fi
}