From 9966cb99c52175926ae97f0334364d5c9e14d7b7 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 19 Mar 2020 02:05:30 +0100 Subject: [PATCH] Use plain bash without function --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 8297b4e..766a747 100755 --- a/functions +++ b/functions @@ -7,12 +7,12 @@ REQUIREMENTS=".ansible/requirements.yml" function run_playbook() { local play_path="$1" - if ! run test -f "$play_path"; then + if [[ ! -f "$play_path" ]]; then echo " $play_path not found or executable bit not set. Skipping ..." exit 0 fi - if run test -f "$REQUIREMENTS"; then + if [[ -f "$REQUIREMENTS" ]]; then echo " $REQUIREMENTS file found. Running it ..." ansible-galaxy install -fvf "$REQUIREMENTS" fi