diff options
Diffstat (limited to 'tools/notsd-move')
-rwxr-xr-x | tools/notsd-move | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/notsd-move b/tools/notsd-move index bf0646528f..0e8cc0dd87 100755 --- a/tools/notsd-move +++ b/tools/notsd-move @@ -683,13 +683,13 @@ breakup_makefile() ( [[ "$(wc -l <<<"$d")" = 1 ]] file="$d/Makefile" fi - elif [[ $file = all ]]; then - printf '%s\n' "$line" | tee -a "${files[@]}" >/dev/null - else - if ! in_array "$file" "${files[@]}"; then + if [[ "$file" != all ]] && ! in_array "$file" "${files[@]}"; then cat .tmp.move.all > "$file" files+=("$file") fi + elif [[ $file = all ]]; then + printf '%s\n' "$line" | tee -a "${files[@]}" >/dev/null + else printf '%s\n' "$line" >> "$file" fi done < <(fixup_makefile <Makefile.am) |