Skip to content

Commit 820ff74

Browse files
author
Dominik Przybyl
committed
minor
1 parent 5c8d72c commit 820ff74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/aem/content.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ func (c *CLI) contentDownloadCmd() *cobra.Command {
7676
c.Error(err)
7777
return
7878
}
79-
pid, _ := cmd.Flags().GetString("target-pid")
80-
if pid == "" {
81-
pid = fmt.Sprintf("aemc:content-download:%s-SNAPSHOT", timex.FileTimestampForNow())
79+
targetPID, _ := cmd.Flags().GetString("target-pid")
80+
if targetPID == "" {
81+
targetPID = fmt.Sprintf("aemc:content-download:%s-SNAPSHOT", timex.FileTimestampForNow())
8282
}
8383
targetFile, _ := cmd.Flags().GetString("target-file")
8484
filterRoots := determineFilterRoots(cmd)
8585
filterFile, _ := cmd.Flags().GetString("filter-file")
8686
clean, _ := cmd.Flags().GetBool("clean")
8787
if err = c.aem.ContentManager().Download(instance, targetFile, clean, pkg.PackageCreateOpts{
88-
PID: pid,
88+
PID: targetPID,
8989
FilterRoots: filterRoots,
9090
FilterFile: filterFile,
9191
}); err != nil {

0 commit comments

Comments
 (0)