X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.bash_profile;h=b10aba7c53d96f2b1885dce6d7bbe7883da40d94;hp=49ea904e5d2acddb1797834a5b7f054c49737974;hb=bfa0c4f2b6dd1f8b6c27c7a3d30dd9d21a524fb1;hpb=3bbd083d605c075a4c7735ae0c836a76e6a77873 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"