forked from nakidai/csnake
Autocreate config dir attempt 2
parent
5f6fc8f212
commit
2e05977e12
|
@ -1,7 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir config
|
||||
|
||||
CC=${CC:-cc}
|
||||
RM=${RM:-rm -f}
|
||||
CFLAGS=${CFLAGS:-}
|
||||
|
@ -23,6 +21,13 @@ echo "Size: $SIZE"
|
|||
echo "Start x: $DEFX"
|
||||
echo "Start y: $DEFY"
|
||||
|
||||
if [ ! test -d config ]; then
|
||||
if [ test-f config ]; then
|
||||
rm config
|
||||
fi
|
||||
mkdir config
|
||||
fi
|
||||
|
||||
echo "CC = $CC
|
||||
RM = $RM
|
||||
CFLAGS = $CFLAGS
|
||||
|
|
Loading…
Reference in New Issue