Fix archive.sh for LICENSE files (#3535)

Signed-off-by: Spike Curtis <spike@coder.com>

Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
Spike Curtis 2022-08-17 10:27:52 -07:00 committed by GitHub
parent c3f946737c
commit 5c898d0c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -108,11 +108,8 @@ cdroot
temp_dir="$(mktemp -d)"
ln -s "$input_file" "$temp_dir/$output_file"
ln -s "$(realpath README.md)" "$temp_dir/"
if [[ "$agpl" == 1 ]]; then
ln -s "$(realpath LICENSE.agpl)" "$temp_dir/LICENSE"
else
ln -s "$(realpath LICENSE)" "$temp_dir/"
ln -s "$(realpath LICENSE.agpl)" "$temp_dir/"
ln -s "$(realpath LICENSE)" "$temp_dir/"
if [[ "$agpl" == 0 ]]; then
ln -s "$(realpath LICENSE.enterprise)" "$temp_dir/"
fi