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
+2 -5
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