summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.sh8
1 files changed, 6 insertions, 2 deletions
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}
}