aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 15e6e06c2..e703aad01 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -83,7 +83,7 @@ func (ce *CommandEnv) confirmIsLocked(args []string) error {
}
func (ce *CommandEnv) isLocked() bool {
- return ce.locker.IsLocked()
+ return ce != nil && ce.locker.IsLocked()
}
func (ce *CommandEnv) checkDirectory(path string) error {