Explorar o código

Fix cat abuse

Willy-JL %!s(int64=2) %!d(string=hai) anos
pai
achega
a2d3380d66
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .utils/subtree-subdir-helper.sh

+ 1 - 1
.utils/subtree-subdir-helper.sh

@@ -21,7 +21,7 @@ git subtree split -P "${subdir}" -b "${split}"
 git checkout "${prev}"
 
 exec 69>&1
-result="$(git subtree "${action}" -P "${path}" "${split}" -m "${action^} ${path} from ${repo}" 2>&1 | tee >(cat - >&69))"
+result="$(git subtree "${action}" -P "${path}" "${split}" -m "${action^} ${path} from ${repo}" 2>&1 | tee /proc/self/fd/69)"
 if grep "refusing to merge unrelated histories" <<< "$result" > /dev/null; then
     echo "History at ${repo} is unrelated, using quash..."
     git subtree "${action}" -P "${path}" "${split}" -m "${action^} ${path} from ${repo}" --squash