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