소스 검색

fix redirect output of which

Daniel Sheffield 2 달 전
부모
커밋
17504cba30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      capture.sh

+ 1 - 1
capture.sh

@@ -38,7 +38,7 @@ EOF
 trap 'info' EXIT
 
 exec 2> >(tee -a "$DAT" "$ERR")
-if which socat && ! [ "$PROG" = "sudo" ] 1>/dev/null 2>&1
+if which socat 1>/dev/null 2>&1 && ! [ "$PROG" = "sudo" ]
 then
 	tty="$(tty)"
 	socat PTY,rawer,link="$PTY" EXEC:"$(shell_escape tee -a "$DAT" "$OUT" "$tty")" &