fixed ordering of option maxdepth in find command

This commit is contained in:
aminnairi
2024-01-07 11:30:27 +01:00
parent f74a0d895b
commit 9a6f0b89df
+1 -1
View File
@@ -76,7 +76,7 @@ echo "Done updating this repository, now at the latest revision."
if [[ -z $choosen_playbook_path ]] if [[ -z $choosen_playbook_path ]]
then 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" choosen_playbook_path="ansible/$choosen_playbook_file"
fi fi