From 36cc2f3da56c9484bcdf06530f007b5a62d5bc67 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Wed, 9 Jan 2019 12:42:48 +0200 Subject: [PATCH] check for oathtool --- shell/2fa-view | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/2fa-view b/shell/2fa-view index fce844f..e4852b2 100755 --- a/shell/2fa-view +++ b/shell/2fa-view @@ -43,6 +43,10 @@ for (( i=1; i<=$#; i++ )); do } done +which oathtool &> /dev/null || { + echo Missing oathtool + exit 1 +} timeadjust=0 update_frequency=30