aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/path.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-01-09 14:21:47 +0800
committerzelig <viktor.tron@gmail.com>2015-01-09 14:21:47 +0800
commitb3161f5803fdab9531c611659b7827ff1a2699dd (patch)
tree8e990b73858c4222d16a33c55119bf3ee56e2068 /ethutil/path.go
parent5a9952c7b47f20451feea1158286450e08b85551 (diff)
parent26f066f0c7570bcca43299721c2b7a1a70186ee3 (diff)
downloaddexon-b3161f5803fdab9531c611659b7827ff1a2699dd.tar
dexon-b3161f5803fdab9531c611659b7827ff1a2699dd.tar.gz
dexon-b3161f5803fdab9531c611659b7827ff1a2699dd.tar.bz2
dexon-b3161f5803fdab9531c611659b7827ff1a2699dd.tar.lz
dexon-b3161f5803fdab9531c611659b7827ff1a2699dd.tar.xz
dexon-b3161f5803fdab9531c611659b7827ff1a2699dd.tar.zst
dexon-b3161f5803fdab9531c611659b7827ff1a2699dd.zip
Merge remote-tracking branch 'upstream/develop' into develop
Diffstat (limited to 'ethutil/path.go')
-rw-r--r--ethutil/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethutil/path.go b/ethutil/path.go
index f64e3849e..e545c8731 100644
--- a/ethutil/path.go
+++ b/ethutil/path.go
@@ -12,7 +12,7 @@ func ExpandHomePath(p string) (path string) {
path = p
// Check in case of paths like "/something/~/something/"
- if path[:2] == "~/" {
+ if len(path) > 1 && path[:2] == "~/" {
usr, _ := user.Current()
dir := usr.HomeDir