commit: 778555f772abf82743b1ee48ffc90df2eb96de66
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 13 22:15:40 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 15 21:12:19 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778555f7
ruby-ng.eclass: use bash tests
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/ruby-ng.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index b20c3b462915..f10c987ac44a 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -392,7 +392,7 @@ fi
_ruby_invoke_environment() {
old_S=${S}
- if [ -z "${RUBY_S}" ]; then
+ if [[ -z ${RUBY_S} ]]; then
sub_S=${P}
else
sub_S=${RUBY_S}
@@ -728,7 +728,7 @@ ruby-ng_rspec() {
# Explicitly pass the expected spec directory since the versioned
# rspec wrappers don't handle this automatically.
- if [ ${#@} -eq 0 ]; then
+ if [[ $# -eq 0 ]]; then
files="spec"
fi