From 9a6f0b89dfd7ca00c3618d017926932b8e591d53 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sun, 7 Jan 2024 11:30:27 +0100 Subject: [PATCH] fixed ordering of option maxdepth in find command --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 75bc3ea..4bb12f2 100755 --- a/main.sh +++ b/main.sh @@ -76,7 +76,7 @@ echo "Done updating this repository, now at the latest revision." if [[ -z $choosen_playbook_path ]] then - choosen_playbook_file="$(/usr/bin/find ansible -name '*.yml' -type f -maxdepth 1 | xargs basename -a | /usr/bin/fzf --header 'Choose a configuration file' --pointer 👉 --prompt 🔍)" + choosen_playbook_file="$(/usr/bin/find ansible -maxdepth 1 -name '*.yml' -type f | xargs basename -a | /usr/bin/fzf --header 'Choose a configuration file' --pointer 👉 --prompt 🔍)" choosen_playbook_path="ansible/$choosen_playbook_file" fi