-#!/bin/bash
+#!/usr/bin/env bash
###| Builder Script |###
-#
+#
# Builds all permutations of modules
# This script is an attempt to maintain module sanity as new ones are added
#
# 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