Skip to content

Commit

Permalink
improve ChangePbmVersionAction
Browse files Browse the repository at this point in the history
  • Loading branch information
jiikko committed Feb 18, 2022
1 parent 408ef39 commit 6c582be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def action_content(args: )
require "pbmenv"
ProconBypassMan.logger.info "execute ChangePbmVersionAction!"
pbm_version = args["pbm_version"] or raise(ProconBypassMan::RemotePbmAction::NeedPbmVersionError, "pbm_versionが必要です, #{args.inspect}")
Pbmenv.uninstall(pbm_version) # 途中でシャットダウンしてしまった、とか状態が途中の状態かもしれないので一旦消す
Pbmenv.install(pbm_version)
Pbmenv.use(pbm_version)
`reboot` # symlinkの参照先が変わるのでrebootする必要がある
Expand Down

0 comments on commit 6c582be

Please sign in to comment.