diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-13 12:36:41 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-13 12:36:41 -0400 |
commit | e88534b631c3df7d25efbcc4fe9e4910b2a276eb (patch) | |
tree | 80755ad20fedd93634c7396dbaf49150017f5646 /src | |
parent | 68e05b4f7a45f58531b26ffa8bfab59b65439cb4 (diff) |
librefetch: careful with stdout, might be called by `makepkg -g`
Diffstat (limited to 'src')
-rwxr-xr-x | src/librefetch/librefetch | 4 |
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 } |