]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - buildall.bash
Ensure directories can only be made with printable characters
[kiibohd-controller.git] / buildall.bash
index dd3a7cc13764579bd4fe09fb17f10fb3b5a1f83a..a8c393b58eea7c8b7c09317d0afd08b926675716 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ###| Builder Script |###
 #
 # Builds all permutations of modules
@@ -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