app-editors/atom: Use newer bash syntax
authorElvis Pranskevichus <elvis@magic.io>
Sat, 19 Nov 2016 19:20:03 +0000 (14:20 -0500)
committerGöktürk Yüksek <gokturk@gentoo.org>
Mon, 21 Nov 2016 05:12:04 +0000 (00:12 -0500)
Package-Manager: portage-2.3.0

app-editors/atom/atom-1.12.2.ebuild

index 70fdd96b34095dce55d4a267dd5cfe71b881c3e0..26f89e46e96ebcdec6162223df6332e1d6b5bdbe 100644 (file)
@@ -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() {