aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples/no-empty-user
blob: bfbbdd881ef0772cd67a1a95444625e051d790b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- shell-script -*-

# The module restarts gates-of-tartaros is the user line is left empty


read_function_no_empty_user=$read_function
read_function=_read_no_empty_user

_read_no_empty_user ()
{
    $read_function_no_empty_user
    if [ "${user}" = "" ]; then
	exit 0
    fi
}