github.com/naohirotamura/u-root@v7.0.0+incompatible/cmds/core/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  }