mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
drastically simplified the playbook selection in the installation script
This commit is contained in:
@@ -65,6 +65,8 @@ choosen_playbook_path=$1
|
|||||||
|
|
||||||
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)"
|
||||||
|
choosen_playbook_path="ansible/$choosen_playbook_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f $choosen_playbook_path ]]
|
if [[ ! -f $choosen_playbook_path ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user