diff --git a/scripts/update-common-files.nu b/scripts/update-common-files.nu new file mode 100644 index 0000000..21d3882 --- /dev/null +++ b/scripts/update-common-files.nu @@ -0,0 +1,19 @@ +#!/usr/bin/env nu +# SPDX-License-Identifier: AGPL-3.0-only +# SPDX-FileCopyrightText: 2025 @matrixfurry.com + +# Update the common files in this directory to the latest from https://tangled.org/@matrixfurry.com/common +def main [] { + let files = [ + "CODE_OF_CONDUCT.md" + "CONTRIBUTING.md" + "SECURITY.md" + "LICENSE" + ] + + $files + | par-each {|file| + http get $"https://tangled.org/@matrixfurry.com/common/raw/main/($file)" + | save -fp $file + } +}