]> Nishi Git Mirror - gwion.git/commitdiff
:bug: fix with_config arguments
authorfennecdjay <fennecdjay@gmail.com>
Mon, 6 Mar 2023 10:44:57 +0000 (11:44 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 6 Mar 2023 10:44:57 +0000 (11:44 +0100)
scripts/embed.bash

index cc4ca5deaa1c179710647dfffc2175f13d265727..907f52efc20e0d1677bdb1ba7d75341f8be4eeec 100644 (file)
@@ -180,9 +180,9 @@ args=$(jq -rc '.args' <<< "$json")
     while read -r arg 
     do echo "  \"$arg\", "
     done
+    count=$((count+1))
   }
   echo "};"
-  count=$((count+1))
   echo "static const int config_argc = $count;"
 cat << EOF
 ANN const char** config_args(int *argc, char **const argv) {