From b94a26dbab7c71b905ecad23ed2b352161de40ed Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Tue, 1 Jan 2019 23:10:46 +0000 Subject: [PATCH] test for file existence before sourcing --- bin/kerl.setup.bash | 2 +- bin/kiex.setup.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/kerl.setup.bash b/bin/kerl.setup.bash index 1d46596..417feca 100644 --- a/bin/kerl.setup.bash +++ b/bin/kerl.setup.bash @@ -1 +1 @@ -. $HOME/.kerl/installs/21.0/activate +test -s "$HOME/.kerl/installs/21.0/activate" && source "$HOME/.kerl/installs/21.0/activate" diff --git a/bin/kiex.setup.bash b/bin/kiex.setup.bash index 9a322ea..b260563 100644 --- a/bin/kiex.setup.bash +++ b/bin/kiex.setup.bash @@ -1,2 +1,2 @@ test -s "$HOME/.kiex/scripts/kiex" && source "$HOME/.kiex/scripts/kiex" -source $HOME/.kiex/elixirs/elixir-1.7.4.env +test -s "$HOME/.kiex/elixirs/elixir-1.7.4.env" && source "$HOME/.kiex/elixirs/elixir-1.7.4.env"