Skip to content

Commit

Permalink
bee-remove: Check exit-status of first pipe command
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 27, 2012
1 parent f2795a0 commit d85905d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bee-remove.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function pkg_remove() {
echo >&2 "bee-remove: FAILED to remove '${search}': No such package."
echo >&2 "bee-remove: List of installed packages matching '${search}':"
bee-list -i "${search}" | sed -e 's,^, ,' >&2
if [ $? != 0 ] ; then
if [ ${PIPESTATUS[0]} != 0 ] ; then
echo >&2 " No packages found."
fi
}
Expand Down

0 comments on commit d85905d

Please sign in to comment.