nix-openclaw/nix/scripts/remove-package-manager-field.sh
2026-01-07 12:44:54 +01:00

12 lines
167 B
Bash
Executable File

#!/bin/sh
set -eu
path="${1:-}"
if [ -z "$path" ] || [ ! -f "$path" ]; then
exit 0
fi
tmp="$(mktemp)"
jq 'del(.packageManager)' "$path" > "$tmp"
mv "$tmp" "$path"