github.com/mem/u-root@v2.0.1-0.20181004165302-9b18b4636a33+incompatible/cmds/installcommand/installcommand_linux.go (about) 1 // Copyright 2017 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "os" 9 "os/exec" 10 "syscall" 11 ) 12 13 func exitWithStatus(err *exec.ExitError) { 14 os.Exit(err.Sys().(syscall.WaitStatus).ExitStatus()) 15 }