From b1dec678233618542abbdc8f7fe896af3637be0a Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Sat, 6 Feb 2016 21:06:08 -0500 Subject: [PATCH] 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. --- buildall.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildall.bash b/buildall.bash index 4f5aaa9..a8c393b 100755 --- a/buildall.bash +++ b/buildall.bash @@ -31,7 +31,8 @@ main() { # 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 -- 2.39.2