From 75406151720cc055f10066c55e2a04bf044a9041 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 28 May 2010 15:45:46 +0100 Subject: [PATCH 1/1] Handle tsort failure. If tsort fails just source the scripts in the order they're found. --- .bash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 49ea904..b10aba7 100644 --- a/.bash_profile +++ b/.bash_profile @@ -46,7 +46,11 @@ $i" ${deps##* }" fi - deps=$(echo "$deps" | tsort) + sorted=$(echo "$deps" | tsort) + if [ -n "$sorted" ]; then + deps="$sorted" + unset sorted + fi deps="$required $deps" -- 2.20.1