nutools/noerr

9 lines
249 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 "noerr: lancer une commande en supprimant la sortie d'erreur"
exit 0
fi
[ $# -gt 0 ] || exit 0
"$@" 2>/dev/null