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