diff options
author | lookshe <github@lookshe.org> | 2017-03-21 16:34:10 +0100 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2017-03-21 16:34:10 +0100 |
commit | aed0f66e7f60f343f5d486dbcf621253cdfabb30 (patch) | |
tree | 9a936f5ae576c208b3bfab707d0ed9853a17e049 | |
parent | 424052977fd9696879c9467922c11383b455e96f (diff) |
use on each call
-rwxr-xr-x | backup.sh | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |