diff options
author | Kent Fredric <kentnl@gentoo.org> | 2017-05-22 03:44:25 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-05-22 03:44:50 +1200 |
commit | 808ab1ee48594f060a638cce673bccbcf620a9b7 (patch) | |
tree | dd351d9e64374bd479b8111401924bcd8082fd70 /dev-lang | |
parent | b6236bc6a470a28b3d8d5d016edbb4fe78080288 (diff) | |
download | gentoo-808ab1ee48594f060a638cce673bccbcf620a9b7.tar.gz gentoo-808ab1ee48594f060a638cce673bccbcf620a9b7.tar.xz |
dev-lang/perl: Fix variable in arithmetic expansion on older bash
Older bashes seem to think:
$(( "26" % 2 ))
Is
$(( ""26" % 2 " ))
Or something, and barfs.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/perl/perl-5.26.9999.ebuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-lang/perl/perl-5.26.9999.ebuild b/dev-lang/perl/perl-5.26.9999.ebuild index 9c159ec9432..81ecf305054 100644 --- a/dev-lang/perl/perl-5.26.9999.ebuild +++ b/dev-lang/perl/perl-5.26.9999.ebuild @@ -25,7 +25,7 @@ fi SHORT_PV="${DIST_VERSION%.*}" # Even numbered major versions are ABI intercompatible # Odd numbered major versions are not -if [[ $(( "${SHORT_PV#*.}" % 2 )) == 1 ]]; then +if [[ $(( ${SHORT_PV#*.} % 2 )) == 1 ]]; then SUBSLOT="${DIST_VERSION%-RC*}" else SUBSLOT="${DIST_VERSION%.*}" |