[type/__package_emerge] Send error messages to stderr
This commit is contained in:
parent
ccdbf1a31c
commit
a7f1eda328
1 changed files with 4 additions and 4 deletions
|
@ -39,12 +39,12 @@ pkg_version="$(cat "$__object/explorer/pkg_version")"
|
||||||
if [ -z "$pkg_version" ]; then
|
if [ -z "$pkg_version" ]; then
|
||||||
state_is="absent"
|
state_is="absent"
|
||||||
elif [ -z "$version" ] && [ "$(echo "$pkg_version" | wc -l)" -gt 1 ]; then
|
elif [ -z "$version" ] && [ "$(echo "$pkg_version" | wc -l)" -gt 1 ]; then
|
||||||
echo "Package name is not unique! The following packages are installed:"
|
echo "Package name is not unique! The following packages are installed:" >&2
|
||||||
echo "$pkg_version"
|
echo "$pkg_version" >&2
|
||||||
exit 1
|
exit 1
|
||||||
elif [ -n "$version" ] && [ "$(echo "$pkg_version" | cut -d " " -f 1 | sort | uniq | wc -l)" -gt 1 ]; then
|
elif [ -n "$version" ] && [ "$(echo "$pkg_version" | cut -d " " -f 1 | sort | uniq | wc -l)" -gt 1 ]; then
|
||||||
echo "Package name is not unique! The following packages are installed:"
|
echo "Package name is not unique! The following packages are installed:" >&2
|
||||||
echo "$pkg_version"
|
echo "$pkg_version" >&2
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
state_is="present"
|
state_is="present"
|
||||||
|
|
Loading…
Reference in a new issue