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