[REV] Change image and slug file recognition methods for export app.

This commit is contained in:
Zhang Jiajun 2018-06-10 19:36:30 +08:00
parent ff04e56174
commit f2fd4fdc7e

View File

@ -311,7 +311,7 @@ func (i *ExportApp) saveApps() error {
_, err := os.Stat(shareSlugPath)
if shareSlugPath != "" && err == nil {
logrus.Debug("The slug file was exist already, direct copy to service dir: ", shareSlugPath)
err = exec.Command(fmt.Sprintf("cp %s %s/%s", shareSlugPath, serviceDir, tarFileName)).Run()
err = exec.Command("cp", shareSlugPath, fmt.Sprintf("%s/%s", serviceDir, tarFileName)).Run()
if err == nil {
continue
}