Skip to content

Commit

Permalink
Remove glob
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Dec 15, 2023
1 parent 385083c commit fc9f27a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
#!/bin/bash

dirs=()
dirs=("IN0009_GBS" "example")

for subdir in ./*/; do

# search all folders except "build"
if [ -d "$subdir" ] && [ "$(basename "$subdir")" != "build" ]; then
dirs+=("$subdir")
fi
done

# create output folder
mkdir -p build

# loop over directories
for dir in "${dirs[@]}"; do
mkdir -p build/$dir
echo "Building $dir"
Expand Down

0 comments on commit fc9f27a

Please sign in to comment.