You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
359 B

  1. #!/usr/bin/env bash
  2. # Run the command in the arguments and turn any non-0 exit code
  3. # into a 255 exit code. This is useful when using xargs because
  4. # xargs stops itself only on exit code 255 from the subprocess,
  5. # and not any other exit code.
  6. #
  7. # Remember to add "255wrap" before the subprocess, not the "xargs"!
  8. "$@"
  9. if [[ $? -ne 0 ]]; then
  10. exit 255
  11. fi