diff options
| author | ANDI FAUZAN HEDIANTORO <144610468+fauzan171@users.noreply.github.com> | 2026-06-15 17:22:58 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-15 12:22:58 +0200 |
| commit | df34d2b8d575777465aed8ae9b7cd90d63fdcd6e (patch) | |
| tree | 1277a67453240db3602f4bdba00f3e300b676483 | |
| parent | 96ea17080a7addd1cd8b6253422776bc237fc6b1 (diff) | |
| download | ohmyzsh-df34d2b8d575777465aed8ae9b7cd90d63fdcd6e.tar.gz ohmyzsh-df34d2b8d575777465aed8ae9b7cd90d63fdcd6e.zip | |
chore(ansible): zsh-ify some code (#13797)
| -rw-r--r-- | plugins/ansible/ansible.plugin.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ansible/ansible.plugin.zsh b/plugins/ansible/ansible.plugin.zsh index 75393b70..bfe7f8cb 100644 --- a/plugins/ansible/ansible.plugin.zsh +++ b/plugins/ansible/ansible.plugin.zsh @@ -1,13 +1,13 @@ # Functions -function ansible-version(){ +function ansible-version() { ansible --version } -function ansible-role-init(){ - if ! [ -z $1 ] ; then +function ansible-role-init() { + if [[ -n "$1" ]]; then echo "Ansible Role : $1 Creating...." - ansible-galaxy init $1 - tree $1 + ansible-galaxy init "$1" + tree "$1" else echo "Usage : ansible-role-init <role name>" echo "Example : ansible-role-init role1" |
