aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples
diff options
context:
space:
mode:
Diffstat (limited to 'gotrc-examples')
-rw-r--r--gotrc-examples/no-empty-user16
1 files changed, 16 insertions, 0 deletions
diff --git a/gotrc-examples/no-empty-user b/gotrc-examples/no-empty-user
new file mode 100644
index 0000000..4f50033
--- /dev/null
+++ b/gotrc-examples/no-empty-user
@@ -0,0 +1,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
+
+function _read_no_empty_user
+{
+ $read_function_no_empty_user
+ if ["${lower}" = "" ]; then
+ exit 0
+ fi
+}
+