From: Iain Patterson Date: Fri, 28 May 2010 14:45:46 +0000 (+0100) Subject: Handle tsort failure. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=75406151720cc055f10066c55e2a04bf044a9041;p=profile.git Handle tsort failure. If tsort fails just source the scripts in the order they're found. --- 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"