changeset 408:47a2714ca802

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.
author Ryan S. Brown <sb@ryansb.com>
date Sat, 06 Feb 2016 21:06:08 -0500
parents a8104feb0514
children 494cd4d2e414
files buildall.bash
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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