summaryrefslogtreecommitdiff
path: root/eclass/ruby-ng.eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-13 23:15:40 +0100
committerSam James <sam@gentoo.org>2023-06-15 22:12:19 +0100
commit778555f772abf82743b1ee48ffc90df2eb96de66 (patch)
treea364592c803d37546f98ae35e007d2e167b2e1cd /eclass/ruby-ng.eclass
parentacf925859631ce5a5867d27244665c623fa1ad99 (diff)
downloadgentoo-778555f772abf82743b1ee48ffc90df2eb96de66.tar.gz
gentoo-778555f772abf82743b1ee48ffc90df2eb96de66.tar.bz2
gentoo-778555f772abf82743b1ee48ffc90df2eb96de66.zip
ruby-ng.eclass: use bash tests
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass4
1 files 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