X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=config%2Fdc-filter;h=1fcb45e5fd0a375a803ce06dfd2e58a7a579e101;hb=7ebc7902c240e0417fd0ecfc809066ff13ab293f;hp=e3d0a268df499b54bad89b29d83b00943e067cdb;hpb=a6478045da8ad1c50aebdde5dd1e34579a18ba40;p=doldaconnect.git diff --git a/config/dc-filter b/config/dc-filter old mode 100644 new mode 100755 index e3d0a26..1fcb45e --- a/config/dc-filter +++ b/config/dc-filter @@ -10,7 +10,12 @@ exec 2>>$HOME/dc/filterlog cd $HOME/dc unset speedrecpath -for dir in /usr/libexec /usr/local/libexec; do +IFS=: binpath=($PATH) +lepath=() +for dir in "${binpath[@]}"; do + lepath=("${lepath[@]}" "${dir%/bin}/libexec") +done +for dir in "${lepath[@]}" /usr/libexec /usr/local/libexec; do if [ -x "${dir}/speedrec" ]; then speedrecpath="${dir}/speedrec" fi @@ -115,7 +120,7 @@ if [ -e "$newname" ]; then fi mv "$resfile" "$newname" if [ -x $HOME/dc/complete ]; then - export "${!dcarg_@}" tth + export "${!dcarg_@}" tth filesize exec $HOME/dc/complete "$newname" fi exit 0