]> diplodocus.org Git - flac-archive/blobdiff - fa-rip
Print error message to stderr.
[flac-archive] / fa-rip
diff --git a/fa-rip b/fa-rip
index eabf52ea97878939f1418511c60f3aaaf190846d..1898dd55f51d892cff86381250405eb87b40af1e 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -18,9 +18,10 @@ get_cddev () {
 
 if [[ -z ${CDDEV} ]]; then
     if ! get_cddev; then
-        echo 'CDDEV environment variable not set, defaults did not work'
+        echo 'CDDEV environment variable not set, defaults did not work' >&2
         exit 2
     fi
+    export CDDEV
 fi
 
 dir=$(mktemp -d flac-archive.XXXXXXXXXX)