Skip to content

Commit

Permalink
bee-query: do not depend on basename
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 7, 2011
1 parent aba7b5d commit 60daefd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bee-query.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ query() {
for f in "${list[@]}" ; do
# check if $f is pkg, list related files
# otherwise list pkg
base=$(basename $f)
base=${f##*/}
if [ -d "${BEE_METADIR}/${base}" ] ; then
eval $(@BINDIR@/beeversion $base)
get_files "${PKGALLPKG}"
Expand Down Expand Up @@ -72,7 +72,7 @@ get_pkgs() {

for i in ${BEE_METADIR}/* ; do
if egrep -q "file=.*${f}" ${i}/FILES ; then
echo $(basename ${i})
echo ${i##*/}
for line in $(egrep "file=.*${f}" ${i}/FILES) ; do
echo " $(beefind2filename $line)"
done
Expand Down

0 comments on commit 60daefd

Please sign in to comment.