diff --git a/env.sh b/env.sh index 46d6642263e73..a154d7ffb38af 100755 --- a/env.sh +++ b/env.sh @@ -1,7 +1,9 @@ #!/bin/sh pfx="$1" -if [ "`echo $pfx | cut -c 1`" != / ]; then +if [ "`echo $pfx | cut -c 1`" = ~ ]; then + pfx="$HOME/$pfx" +elif [ "`echo $pfx | cut -c 1`" != / ]; then pfx="$PWD/$pfx" fi