summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvis@magic.io>2016-11-19 14:20:03 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2016-11-21 00:12:04 -0500
commitda122d84cdf1bffcfa851c4277bf38dd894ab902 (patch)
treee16592d06fd085010c21680aa58df38faaa49aa6 /app-editors/atom/atom-1.12.2.ebuild
parentapp-editors/atom: Version bump to 1.12.2 (diff)
downloadgentoo-da122d84cdf1bffcfa851c4277bf38dd894ab902.tar.gz
gentoo-da122d84cdf1bffcfa851c4277bf38dd894ab902.tar.bz2
gentoo-da122d84cdf1bffcfa851c4277bf38dd894ab902.zip
app-editors/atom: Use newer bash syntax
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-editors/atom/atom-1.12.2.ebuild')
-rw-r--r--app-editors/atom/atom-1.12.2.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/app-editors/atom/atom-1.12.2.ebuild b/app-editors/atom/atom-1.12.2.ebuild
index 70fdd96b3409..26f89e46e96e 100644
--- a/app-editors/atom/atom-1.12.2.ebuild
+++ b/app-editors/atom/atom-1.12.2.ebuild
@@ -150,9 +150,9 @@ easar() {
}
package_dir() {
- local binmod="${1}" binmod_v
- eval binmod_v=\${$(tr '[:lower:]' '[:upper:]' <<< ${binmod//-/_}_V)}
- echo -n ${binmod}-${binmod_v}
+ local binmod="${1//-/_}"
+ local binmod_v="${binmod^^}_V"
+ echo -n ${1}-${!binmod_v}
}
_unpack_npm_package() {