Autogenerate available configs

This commit is contained in:
CommanderRedYT
2022-09-18 11:57:04 +02:00
parent 98a1160c6f
commit bff99bd6c5

View File

@ -1,19 +1,6 @@
#!/bin/bash
VALID_CONFIGS=(
"comred"
"peter"
"feedc0de"
"mick"
"greyhash"
"nofeatures"
"allfeatures"
"seatbot"
"gernot"
"comred_new"
"aveexy"
"testdevice"
)
VALID_CONFIGS=($(ls configs/ | grep ".cmake" | sed 's/config_//;s/.cmake//'))
print_usage() {
echo "usage: ./switchconf.sh ${VALID_CONFIGS[@]}"