From 9346b9c6eb26b71dd9a7f93440007e07d0f89298 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Jan 2016 10:28:26 -0500 Subject: main(): Check return value of *_vardata() --- diff --git a/src/main.sh b/src/main.sh index de7e8f6..51b21ac 100644 --- a/src/main.sh +++ b/src/main.sh @@ -63,7 +63,9 @@ main() fi srand $(expr ${$} + $(date '+%s')) - init_vardata + if ! init_vardata; then + return 2 + fi case "${cmd}" in 'help'|'version') ;; @@ -77,7 +79,9 @@ main() run_cmd "${cmd}" "${@}" es=${?} - fini_vardata + if ! fini_vardata; then + return 2 + fi return ${es} } -- cgit v0.9.1