浏览代码

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

正在加载...
取消
保存