From 8dee80c0df7e8dd540596c4e3ec3fbdfa10f43bd Mon Sep 17 00:00:00 2001 From: Elijah Lazkani Date: Fri, 3 Mar 2017 22:25:42 -0500 Subject: [PATCH] Make sure the fish config directory is present before moving on --- salty/base/fish/init.sls | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/salty/base/fish/init.sls b/salty/base/fish/init.sls index 2b2ef42..2537d41 100644 --- a/salty/base/fish/init.sls +++ b/salty/base/fish/init.sls @@ -19,7 +19,14 @@ install-oh-my-fish: - runas: {{ grains.user }} - unless: test -d {{ grains.homedir }}/.local/share/omf -oh-my-fish-config: +create-oh-my-fish-config-directory: + file.directory: + - name: {{ grains.homedir }}/.config/omf + - user: {{ grains.user }} + - group: {{ grains.group }} + - force: True + +oh-my-fish-bundle-config: file.managed: - name: {{ grains.homedir }}/.config/omf/bundle - source: salt:///fish/files/bundle