소스 검색

Add 255wrap

master
Ivan Kozik 1 개월 전
부모
커밋
8c1c90267f
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. +14
    -0
      255wrap

+ 14
- 0
255wrap 파일 보기

@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# Run the command in the arguments and turn any non-0 exit code
# into a 255 exit code. This is useful when using xargs because
# xargs stops itself only on exit code 255 from the subprocess,
# and not any other exit code.
#
# Remember to add "255wrap" before the subprocess, not the "xargs"!

"$@"

if [[ $? -ne 0 ]]; then
exit 255
fi

불러오는 중...
취소
저장