Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

nix: Fix generate-licenses failure (#34072)

Julia Ryan01bdef130b03
diff --git a/script/generate-licenses b/script/generate-licenses
index 7ae0f1c3f60..771ce2363d0 100755
--- a/script/generate-licenses
+++ b/script/generate-licenses
@@ -36,8 +36,9 @@ fi
echo "Generating cargo licenses"
if [ -z "${ALLOW_MISSING_LICENSES-}" ]; then FAIL_FLAG=--fail; else FAIL_FLAG=""; fi
+if [ -z "${ALLOW_MISSING_LICENSES-}" ]; then WRAPPER=fail_on_stderr; else WRAPPER=""; fi
set -x
-fail_on_stderr cargo about generate \
+$WRAPPER cargo about generate \
$FAIL_FLAG \
-c script/licenses/zed-licenses.toml \
"$TEMPLATE_FILE" >>"$OUTPUT_FILE"