From 95fa8e26281ec388290deba5b3c3d8d292f177ac Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 11 Feb 2023 22:43:56 +0100 Subject: [PATCH] bash add file existance before sourcing --- roles/bash/files/bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/bash/files/bashrc b/roles/bash/files/bashrc index a370be6..9fb6650 100644 --- a/roles/bash/files/bashrc +++ b/roles/bash/files/bashrc @@ -102,5 +102,5 @@ alias vim='nvim' [ -f ~/.fzf.bash ] && source ~/.fzf.bash # asdf -. "$HOME/.asdf/asdf.sh" -. "$HOME/.asdf/completions/asdf.bash" +[ -f ~/.asdf/asdf.sh ] && source ~/.asdf/asdf.sh +[ -f ~/.asdf/completions/asdf.bash ] && source ~/.asdf/completions/asdf.bash