summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell.go b/shell.go
index be51271..f58eab9 100644
--- a/shell.go
+++ b/shell.go
@@ -29,10 +29,13 @@ var bytesSplice []byte
func handleError(c interface{}, ret int) {
log.Println("shell.Run() Returned", ret)
+ if (callback != nil) {
+ callback(c, ret)
+ }
}
func init() {
- callback = handleError
+ callback = nil
}
func InitCallback(f func(interface{}, int)) {