mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 15:19:09 +01:00
fixed condition checking for the existence of the playbook not in the
correct block of code
This commit is contained in:
1 parent
9304a0a0ed
commit
6389c8b30f
1 file changed
+1
-1
@@ -53,13 +53,13 @@ then
|
||||
read -r -p "Choice: " index
|
||||
|
||||
choosen_playbook_path=${available_playbook_paths[$index - 1]}
|
||||
fi
|
||||
|
||||
if [[ -z $choosen_playbook_path ]]
|
||||
then
|
||||
echo "Error: invalid index."
|
||||
exit $ERROR_BECAUSE_PLAYBOOK_INVALID_OR_NOT_FOUND
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f $choosen_playbook_path ]]
|
||||
then
|
||||
|
||||
Reference in new issue
Block a user