From 20b789268fbc49a24c2ac76ff947774945fcbb4c Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 8 Jan 2022 14:38:55 +0100 Subject: [PATCH] Fixing small bugs. --- README.md | 7 +++++++ run_all.sh | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d95f58f..841b3a4 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ This script allows you to execute common sequencially scripts on various servers. It can be use to quickly run maintainance scripts on several servers while having proper feedback when things go wrong. +## Dependencies: +This script has several dependencies: +- bash +- awk +- sshpass +- docker on remote server if it does not have it. + ## How to use ### Creating scripts diff --git a/run_all.sh b/run_all.sh index 89b75dc..09934f7 100755 --- a/run_all.sh +++ b/run_all.sh @@ -22,7 +22,10 @@ # along with this program. If not, see . echo "" -cd "$(dirname $(readlink $0))" +# Cd into the directory of the library +script="$(readlink $0)" +if [ -z "$script" ]; then script="$0"; fi +cd "$(dirname "$script")" # Importing common functions. . ./libraries/common.sh