-unset speedrec
-if which speedrec >/dev/null 2>&1; then
- speedrec=speedrec
-fi
-if [ -z "$speedrec"]; then
- for dir in /usr/libexec /usr/local/libexec; do
- if [ -x "${dir}/speedrec" ]; then
- speedrec="${dir}/speedrec"
- fi
- done
-fi
-if [ -z "$speedrec" ]; then
+
+unset speedrecpath
+for dir in /usr/libexec /usr/local/libexec; do
+ if [ -x "${dir}/speedrec" ]; then
+ speedrecpath="${dir}/speedrec"
+ fi
+done
+if [ -z "$speedrecpath" ]; then