Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

15 lignes
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