diff options
Diffstat (limited to 'src/categories')
-rwxr-xr-x | src/categories | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/categories b/src/categories index a054069..9261fdf 100755 --- a/src/categories +++ b/src/categories @@ -9,9 +9,10 @@ usage() { DIRECTORY="${1:-}" eval "$(assert-arg -- "$DIRECTORY" 'DIRECTORY')" -listall() { - find "$DIRECTORY"/category.*.*.sortdata | cut -d. -f2 | sort | uniq -} +listall() ( + cd "$DIRECTORY" + find category.*.*.sortdata | cut -d. -f2 | sort | uniq +) for category in `listall`; do out="$DIRECTORY"/categories."$category".sortdata |