diff options
-rwxr-xr-x | bin/ebuild.sh | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index c7f81c50e..e67dd6366 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -188,11 +188,8 @@ has_version() { fi local retval=$? case "${retval}" in - 0) - return 0 - ;; - 1) - return 1 + 0|1) + return ${retval} ;; *) die "unexpected portageq exit code: ${retval}" @@ -230,11 +227,8 @@ best_version() { fi local retval=$? case "${retval}" in - 0) - return 0 - ;; - 1) - return 1 + 0|1) + return ${retval} ;; *) die "unexpected portageq exit code: ${retval}" |