Ver a proveniência

Add 255wrap

master
Ivan Kozik há 1 mês
ascendente
cometimento
8c1c90267f
1 ficheiros alterados com 14 adições e 0 eliminações
  1. +14
    -0
      255wrap

+ 14
- 0
255wrap Ver ficheiro

@@ -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

Carregando…
Cancelar
Guardar