|
|
@ -62,7 +62,6 @@ func CreatePackage() error { |
|
|
|
pkgName string |
|
|
|
pkgVersion string |
|
|
|
pkgNameVersion string |
|
|
|
pkg string |
|
|
|
index int |
|
|
|
err error |
|
|
|
) |
|
|
@ -90,9 +89,7 @@ func CreatePackage() error { |
|
|
|
choices = Helper.Input() |
|
|
|
|
|
|
|
if choices == "" { |
|
|
|
for _, pkg = range pickedFiles { |
|
|
|
pkgFiles = append(pkgFiles, filepath.Join(Variables.RootDir, pkg)) |
|
|
|
} |
|
|
|
pkgFiles = append(pkgFiles, pickedFiles...) |
|
|
|
} else { |
|
|
|
choicesSplit = strings.Split(choices, ",") |
|
|
|
|
|
|
@ -104,7 +101,7 @@ func CreatePackage() error { |
|
|
|
if len(pickedFiles) < index { |
|
|
|
return errors.New("invalid choice") |
|
|
|
} |
|
|
|
pkgFiles = append(pkgFiles, filepath.Join(Variables.RootDir, pickedFiles[index])) |
|
|
|
pkgFiles = append(pkgFiles, pickedFiles[index]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|