summaryrefslogtreecommitdiff
path: root/db-move
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 20:49:48 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:27:09 -0500
commitd3afe9bb766bbdfaab1474d21fd5e28f0a356039 (patch)
treefbbd414f8526b5ae053fc708cd6844dbfadd3ecb /db-move
parentaefd5a4d961e3eca3326c90ba266d04b325c1f15 (diff)
Avoid using $(basename $var) , use ${var##*/} instead
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move2
1 files changed, 1 insertions, 1 deletions
diff --git a/db-move b/db-move
index a6abb8f..f1c3dea 100755
--- a/db-move
+++ b/db-move
@@ -77,7 +77,7 @@ for pkgbase in "${args[@]:2}"; do
for pkgname in "${pkgnames[@]}"; do
for tarch in "${tarches[@]}"; do
pkgpath=$(getpkgfile "${ftppath_from}/${tarch}/"${pkgname}-${pkgver}-${pkgarch}${PKGEXT})
- pkgfile=$(basename "${pkgpath}")
+ pkgfile="${pkgpath##*/}"
# copy package to pool if needed
# TODO: can be removed once every package has been moved to the package pool