X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..743770fb87bf6ed74488728208c0a411a0063e7d:/tools/internal/update_copyright_header diff --git a/tools/internal/update_copyright_header b/tools/internal/update_copyright_header index 6cccb337cc..eb1e9fe6bd 100755 --- a/tools/internal/update_copyright_header +++ b/tools/internal/update_copyright_header @@ -35,7 +35,7 @@ get_dates() { s/[, ]\+/\n/g p }' "$file" \ - | while read date; do + | while read -r date; do case "$date" in "") ;; @@ -54,9 +54,9 @@ format_dates() { local first local last local next - read first + read -r first last=$first - while read next; do + while read -r next; do if [ $next -eq $((last + 1)) ]; then last=$next else