From bff99bd6c5beaecba4b0f01600ebb9a82c68e652 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Sun, 18 Sep 2022 11:57:04 +0200 Subject: [PATCH] Autogenerate available configs --- switchconf.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/switchconf.sh b/switchconf.sh index 192e5fb..b014540 100755 --- a/switchconf.sh +++ b/switchconf.sh @@ -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[@]}"