fork: Fix logging, actually error out

This commit is contained in:
Salt 2019-09-27 00:00:24 -05:00
parent 0aca409ebc
commit fdc0dfeaf9

3
fork
View File

@ -9,7 +9,8 @@
if [ -z "$@" ]; then if [ -z "$@" ]; then
printf "$0: requires argument\\n" printf "fork: requires argument\\n"
exit 1
fi fi
( (
exec 0>/dev/null 1>&0 2>&0 "$@" exec 0>/dev/null 1>&0 2>&0 "$@"