# HG changeset patch # User Ryan S. Brown # Date 1454810768 18000 # Node ID 47a2714ca802ddbc19f45139e1a0852bde53dcef # Parent a8104feb0514f3de2538da394b12029c4e038710 Ensure directories can only be made with printable characters In situations where `ls` colors directories incorrectly, the `$module` variable contains unprintable characters. This causes directories to be impossible to `cd` into normally, and is generally a pain. diff -r a8104feb0514 -r 47a2714ca802 buildall.bash --- a/buildall.bash Wed Jan 27 20:41:15 2016 -0800 +++ b/buildall.bash Sat Feb 06 21:06:08 2016 -0500 @@ -31,7 +31,8 @@ # Create permutation directories # Then run cmake, and run each build permutation # Keeping track of how many builds failed/passed - for module in $scanModules; do + for mod in $scanModules; do + module=$(tr -dc "[:print:]" <<< "$mod") # Create directory, but do not error if it exists already mkdir -p build/$module cd build/$module