made genkernel.sh mkdir out if it doesn't exist

This commit is contained in:
Izaya 2017-09-13 14:28:33 +10:00
parent 4557dc3ad4
commit 69628df044

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
mkdir -p out/
for f in `dir -d configs/*`; do for f in `dir -d configs/*`; do
kn=$(echo $f | cut -f 1 -d '.' | cut -f 2 -d "/") kn=$(echo $f | cut -f 1 -d '.' | cut -f 2 -d "/")
./genkernel.lua $f "$(git rev-parse --short HEAD)" > out/$kn.lua ./genkernel.lua $f "$(git rev-parse --short HEAD)" > out/$kn.lua