This commit is contained in:
Mark 2024-05-24 23:26:01 -07:00
parent f7eb30a916
commit 17c0099753

View File

@ -97,7 +97,12 @@ function build() {
echo -n "\"description\": \"${job_name}\"", echo -n "\"description\": \"${job_name}\"",
echo -n "\"handout\": \"https://static.betalupi.com/ormc/$(realpath --relative-to="${target_dir}" "${b_target_dir}")/${job_name}.pdf\"," echo -n "\"handout\": \"https://static.betalupi.com/ormc/$(realpath --relative-to="${target_dir}" "${b_target_dir}")/${job_name}.pdf\","
if [[ $solution_stat == 0 ]]; then if [[ $solution_stat == 0 ]]; then
echo -n "\"solutions\": \"https://static.betalupi.com/ormc/$(realpath --relative-to="${target_dir}" "${b_target_dir}")/${job_name}.sols.pdf\"" echo -n "\"solutions\": \"https://static.betalupi.com/ormc/$(realpath --relative-to="${target_dir}" "${b_target_dir}")/${job_name}.sols.pdf\","
fi
if [[ $solution_stat == 0 ]]; then
echo -n "\"starred\": true"
else
echo -n "\"starred\": false"
fi fi
echo -n "}," echo -n "},"
) >> "$target_dir/index.json" ) >> "$target_dir/index.json"