aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2017-03-21 16:34:10 +0100
committerlookshe <github@lookshe.org>2017-03-21 16:34:10 +0100
commitaed0f66e7f60f343f5d486dbcf621253cdfabb30 (patch)
tree9a936f5ae576c208b3bfab707d0ed9853a17e049
parent424052977fd9696879c9467922c11383b455e96f (diff)
use on each call
-rwxr-xr-xbackup.sh14
1 files 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