]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: clean quoting in embed script
authorfennecdjay <fennecdjay@gmail.com>
Wed, 1 Mar 2023 08:59:10 +0000 (09:59 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Wed, 1 Mar 2023 08:59:10 +0000 (09:59 +0100)
scripts/embed.bash

index fe213b1de6cab2854e4f95e0741a184afb12c5c8..cc4ca5deaa1c179710647dfffc2175f13d265727 100644 (file)
@@ -115,7 +115,7 @@ jq -rc '.[]' <<< "$libraries" |
         handle_lib "$path" "$name"
       done
     fi
-    ldflags=$(jq -c '.ldflags' <<< "$lib")
+    ldflags=$(jq -c '.ldflags' <<< "$lib" | sed -e 's/^"//' -e 's/"$//')
     if [ "$ldflags" != "null" ]
     then config "LDFLAGS += $ldflags"
     fi