mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-10 13:29:09 +00:00
robot: Make linter happy
This commit is contained in:
committed by
Itxaka
parent
1a12a26876
commit
b62a3fc892
@@ -12,15 +12,15 @@ import (
|
||||
|
||||
func Reboot() {
|
||||
pterm.Info.Println("Rebooting node")
|
||||
SH("reboot")
|
||||
SH("reboot") //nolint:errcheck
|
||||
}
|
||||
|
||||
func PowerOFF() {
|
||||
pterm.Info.Println("Shutdown node")
|
||||
if IsOpenRCBased() {
|
||||
SH("poweroff")
|
||||
SH("poweroff") //nolint:errcheck
|
||||
} else {
|
||||
SH("shutdown")
|
||||
SH("shutdown") //nolint:errcheck
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user