mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-17 15:27:58 +00:00
Move checkRoot to main
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
@@ -53,10 +53,6 @@ func ListReleases(includePrereleases bool) semver.Collection {
|
||||
|
||||
func Upgrade(
|
||||
version, source string, force, strictValidations bool, dirs []string, preReleases, upgradeRecovery bool) error {
|
||||
if err := checkRoot(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
bus.Manager.Initialize()
|
||||
|
||||
if version == "" && source == "" {
|
||||
|
Reference in New Issue
Block a user