diff --git a/osprepare/distro.go b/osprepare/distro.go index 60b8bee2b..984b87a71 100644 --- a/osprepare/distro.go +++ b/osprepare/distro.go @@ -212,7 +212,7 @@ func (d *clearLinuxDistro) getID() string { // Correctly split and format the command, using sudo if appropriate, as a // common mechanism for the various package install functions. func sudoFormatCommand(command string, packages []string) bool { - toInstall := strings.Join(packages[0:], " ") + toInstall := strings.Join(packages, " ") var executable string var args string