]> git.phdru.name Git - audio-cdr-video.git/blobdiff - audio/mk_list_recursive.sh
Add `cat-playlists`
[audio-cdr-video.git] / audio / mk_list_recursive.sh
index bee4b99db8c569f682bbe3c5d6da3132e00aaa84..6f995009d6d9bfbf93d38c7f0ef552654cc8214a 100755 (executable)
@@ -1,11 +1,14 @@
 #! /bin/sh
 
-PATH=$HOME/lib/audio:$PATH
+. "`dirname \"$0\"`"/../set-path
 umask 022
 
-[ "$1" ] && cd "$1" || exit 1 # or just do it in current directory
-start_dir="`pwd`"
+if [ "$1" ]; then
+   cd "$1" || exit 1
+   # or just do it in the current directory
+fi
 
+start_dir="`pwd`"
 find . -type d -print |
 while read dir; do
    cd "$dir" || exit 1