mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
fixed condition checking for the existence of the playbook not in the
correct block of code
This commit is contained in:
@@ -53,12 +53,12 @@ then
|
|||||||
read -r -p "Choice: " index
|
read -r -p "Choice: " index
|
||||||
|
|
||||||
choosen_playbook_path=${available_playbook_paths[$index - 1]}
|
choosen_playbook_path=${available_playbook_paths[$index - 1]}
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z $choosen_playbook_path ]]
|
if [[ -z $choosen_playbook_path ]]
|
||||||
then
|
then
|
||||||
echo "Error: invalid index."
|
echo "Error: invalid index."
|
||||||
exit $ERROR_BECAUSE_PLAYBOOK_INVALID_OR_NOT_FOUND
|
exit $ERROR_BECAUSE_PLAYBOOK_INVALID_OR_NOT_FOUND
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f $choosen_playbook_path ]]
|
if [[ ! -f $choosen_playbook_path ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user