@@ -50,7 +50,7 @@ func (a *BundleActivity) Execute(ctx context.Context, params *BundleActivityPara
5050 res .FullPath , err = a .Bundle (ctx , unar , params .TransferDir , params .Key , params .TempFile )
5151 }
5252 if err != nil {
53- return nil , err
53+ return nil , nonRetryableError ( err )
5454 }
5555
5656 res .RelPath , err = filepath .Rel (params .TransferDir , res .FullPath )
@@ -96,8 +96,13 @@ func (a *BundleActivity) SingleFile(ctx context.Context, transferDir, key, tempF
9696 }
9797 defer dest .Close ()
9898
99- if err := os .Rename (tempFile , filepath .Join (transferDir , dest .Name ())); err != nil {
100- return "" , fmt .Errorf ("error moving file (from %s to %s): %v" , tempFile , dest .Name (), err )
99+ var path = filepath .Join (transferDir , dest .Name ())
100+ if err := os .Rename (tempFile , path ); err != nil {
101+ return "" , fmt .Errorf ("error moving file (from %s to %s): %v" , tempFile , path , err )
102+ }
103+
104+ if err := os .Chmod (path , os .FileMode (0o755 )); err != nil {
105+ return "" , fmt .Errorf ("error changing file mode: %v" , err )
101106 }
102107
103108 if err := b .Bundle (); err != nil {
0 commit comments