Bladeren bron

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.
ICPad
Ryan S. Brown 8 jaren geleden
bovenliggende
commit
ce38bdadf3
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2
    1
      buildall.bash

+ 2
- 1
buildall.bash Bestand weergeven

# Create permutation directories # Create permutation directories
# Then run cmake, and run each build permutation # Then run cmake, and run each build permutation
# Keeping track of how many builds failed/passed # 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 # Create directory, but do not error if it exists already
mkdir -p build/$module mkdir -p build/$module
cd build/$module cd build/$module