Permalink
Browse files

Update to Version 0.9

Moved `tput` lookup to a more sane location.
  • Loading branch information...
1 parent d0af4e2 commit 0befefc7caa9b9604e0d2d930b5c46a48c056dc7 @sirjaren committed Apr 2, 2012
Showing with 11 additions and 12 deletions.
  1. +11 −12 redoFlacs.sh
View
@@ -2,7 +2,7 @@
#------------------------------------------------------------
# Re-compress, Verify, Test, Re-tag, and Clean Up FLAC Files
-# Version 0.8.1
+# Version 0.9
# sirjaren
#------------------------------------------------------------
@@ -18,8 +18,7 @@
# GNU General Public License for more details.
#-----------------------------------------------------------------
-# TODO: Enable fallback option to users who do not have `tput` installed
-# (via ncurses)
+# TODO: Cleanup fallback printing to cull strings correctly
#--------------
# Dependencies
@@ -74,19 +73,11 @@ AUCDTECT_COMMAND="$(command -v auCDtect)"
##########################
# Version
-VERSION="0.8.1"
+VERSION="0.9"
# Export auCDtect command to allow subshell access
export AUCDTECT_COMMAND
-# Check if `tput` is installed and do a fallback if not
-# installed
-hash tput
-if [[ "$?" -eq 1 ]] ; then
- # Export to allow subshell access
- export FALLBACK="True"
-fi
-
# Export the tag array using some trickery (BASH doesn't
# support exporting arrays natively)
export EXPORT_TAG="$(echo -n "${tags[@]}")"
@@ -1122,6 +1113,14 @@ if [[ "$NO_COLOR" == "true" ]] ; then
YELLOW=""
fi
+# Check if `tput` is installed and do a fallback if not
+# installed
+hash tput
+if [[ "$?" -eq 1 ]] ; then
+ # Export to allow subshell access
+ export FALLBACK="True"
+fi
+
# The below order is probably the best bet in ensuring time
# isn't wasted on doing unnecessary operations if the
# FLAC files are corrupt or have metadata issues

0 comments on commit 0befefc

Please sign in to comment.