From aed0f66e7f60f343f5d486dbcf621253cdfabb30 Mon Sep 17 00:00:00 2001 From: lookshe Date: Tue, 21 Mar 2017 16:34:10 +0100 Subject: use on each call --- backup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backup.sh b/backup.sh index 6daeac7..6a3a5d7 100755 --- a/backup.sh +++ b/backup.sh @@ -22,13 +22,13 @@ tail=$(which tail) # check if all needed tools are installed (only the ones not installed under /bin/) alltoolsinstalled="yes" -test "$cut" = "" && echo "'cut' not installed or not found by 'which'" && alltoolsinstalled="no" -test "$dirname" = "" && echo "'dirname' not installed or not found by 'which'" && alltoolsinstalled="no" -test "$expr" = "" && echo "'expr' not installed or not found by 'which'" && alltoolsinstalled="no" -test "$head" = "" && echo "'head' not installed or not found by 'which'" && alltoolsinstalled="no" -test "$nice" = "" && echo "'nice' not installed or not found by 'which'" && alltoolsinstalled="no" -test "$ssh" = "" && echo "'ssh' not installed or not found by 'which'" && alltoolsinstalled="no" -test "$tail" = "" && echo "'tail' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$cut" = "" && $echo "'cut' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$dirname" = "" && $echo "'dirname' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$expr" = "" && $echo "'expr' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$head" = "" && $echo "'head' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$nice" = "" && $echo "'nice' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$ssh" = "" && $echo "'ssh' not installed or not found by 'which'" && alltoolsinstalled="no" +test "$tail" = "" && $echo "'tail' not installed or not found by 'which'" && alltoolsinstalled="no" if [ "$alltoolsinstalled" = "no" ] then -- cgit v1.2.3