diff --git a/assets/RePEc/rdf2yml.sh b/assets/RePEc/rdf2yml.sh index 45815425a539b955824f7967bb69fd9556be3628..50a42d15f1dc90061d75c488c8753b62c3c8b167 100755 --- a/assets/RePEc/rdf2yml.sh +++ b/assets/RePEc/rdf2yml.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Reads the dynare-*.rdf files in the current directory, and then create a +# Reads the dynare-*.rdf files in the current directory, and then creates a # wp.yml suitable for consumption by Jekyll declare -A wp_authors wp_title wp_year wp_url wp_data_url wp_source_url @@ -104,7 +104,7 @@ else fi for ((i = ${#wp_authors[@]}; i >= 1; i--)); do - if [[ -z ${wp_authors[$i]} ]] || [[ -z ${wp_title[$i]} ]] || [[ -z ${wp_year[$i]} ]] || [[ -z ${wp_url[$i]} ]]; then + if [[ -z ${wp_authors[$i]} || -z ${wp_title[$i]} || -z ${wp_year[$i]} || -z ${wp_url[$i]} ]]; then echo "Some field is missing in working paper $i!" >&2 exit 1 fi