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