From 866ef5c3794764b089efdcfae1a753e294978663 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 20 Aug 2013 13:54:57 +1200 Subject: More conservative expansion for dotfile paths --- sh/profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sh/profile') diff --git a/sh/profile b/sh/profile index 164d765c..5e4f5891 100644 --- a/sh/profile +++ b/sh/profile @@ -8,14 +8,14 @@ PAGER='less' export PAGER # Add ~/.local/bin to PATH if it exists -if [ -d "$HOME/.local/bin" ]; then +if [ -d "$HOME"/.local/bin ]; then PATH="$HOME/.local/bin:$PATH" fi export PATH # Load all supplementary scripts in ~/.profile.d -if [ -d "$HOME/.profile.d" ]; then - for file in "$HOME/.profile.d"/*; do +if [ -d "$HOME"/.profile.d ]; then + for file in "$HOME"/.profile.d/*; do . "$file" done fi -- cgit v1.2.3