diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-08 20:49:48 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-08 21:27:09 -0500 |
commit | d3afe9bb766bbdfaab1474d21fd5e28f0a356039 (patch) | |
tree | fbbd414f8526b5ae053fc708cd6844dbfadd3ecb /db-move | |
parent | aefd5a4d961e3eca3326c90ba266d04b325c1f15 (diff) |
Avoid using $(basename $var) , use ${var##*/} instead
Diffstat (limited to 'db-move')
-rwxr-xr-x | db-move | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |