nutools/noerror

9 lines
280 B
Plaintext
Raw Normal View History

#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
if [ $# -eq 1 -a "$1" == --help ]; then
echo "noerror: lancer une commande en masquant son code de retour. le code de retour est toujours 0"
exit 0
fi
[ $# -gt 0 ] || set :
"$@" || exit 0