mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 04:07:51 +08:00
[REV] Change image and slug file recognition methods for export app.
This commit is contained in:
parent
ff04e56174
commit
f2fd4fdc7e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user