Don't mix the the probed symbols with the command symbols.
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 30c7eba..4ecff25 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -8,7 +8,7 @@
source configure
-genconfig()
+probeconfig()
{
# Probe for container support on target
@@ -19,7 +19,9 @@
EOF
[ $? -eq 0 ] && DEFAULT=y || DEFAULT=n
echo -e "\tdefault $DEFAULT\n" || return 1
-
+}
+genconfig()
+{
# extract config stanzas from each command source file, in alphabetical order
for i in $(ls -1 toys/*.c)
@@ -31,4 +33,5 @@
done
}
-genconfig > generated/Config.in || rm "$OUTFILE"
+probeconfig > generated/Config.probed || rm generated/Config.probed
+genconfig > generated/Config.in || rm generated/Config.in