|
@@ -144,11 +144,17 @@ case "$CMD" in
|
|
|
listened)
|
|
|
if [ $# -lt 1 ] ; then
|
|
|
FILE=$(get_cur_file)
|
|
|
- git_annex_wrap metadata -s tag=listened $FILE
|
|
|
+ git_annex_wrap metadata -s tag=listened "${FILE}"
|
|
|
else
|
|
|
- for FILE in $* ; do
|
|
|
- git_annex_wrap metadata -s tag=listened $FILE
|
|
|
- done
|
|
|
+ if [ $1 = '-' ] ; then
|
|
|
+ cat | while read FILE ; do
|
|
|
+ git_annex_wrap metadata -s tag=listened "${FILE}"
|
|
|
+ done
|
|
|
+ else
|
|
|
+ for FILE in $* ; do
|
|
|
+ git_annex_wrap metadata -s tag=listened "${FILE}"
|
|
|
+ done
|
|
|
+ fi
|
|
|
fi
|
|
|
exit
|
|
|
;;
|