fix: ensure in update

moves the update command implementation to the new Ensure function
This commit is contained in:
sh0rez 2019-10-16 17:37:30 +02:00
parent 6e3e7b2fdd
commit ffd43cf94e
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
2 changed files with 21 additions and 33 deletions

View file

@ -85,7 +85,7 @@ func Main() int {
case installCmd.FullCommand():
return installCommand(workdir, cfg.JsonnetHome, *installCmdURIs)
case updateCmd.FullCommand():
return updateCommand(cfg.JsonnetHome)
return updateCommand(workdir, cfg.JsonnetHome)
default:
installCommand(workdir, cfg.JsonnetHome, []string{})
}