File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,10 @@ public final class Carting {
96
96
}
97
97
}
98
98
99
- try projectService. update ( project)
100
- if !projectHasBeenUpdated {
99
+ if projectHasBeenUpdated {
100
+ try projectService. update ( project)
101
+ }
102
+ else {
101
103
print ( " 🤷♂️ Nothing to update. " )
102
104
}
103
105
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Foundation
7
7
final class ScriptBody : BaseScriptBody {
8
8
9
9
var inputPaths : String
10
- let name : String
10
+ let name : String ?
11
11
var outputPaths : String
12
12
var shellPath : String
13
13
var shellScript : String
@@ -22,7 +22,9 @@ final class ScriptBody: BaseScriptBody {
22
22
}
23
23
components. append ( . tripleTab + " ); " )
24
24
components. append ( . tripleTab + " inputPaths = \( inputPaths) ; " )
25
- components. append ( . tripleTab + " name = \( name) ; " )
25
+ if let name = name {
26
+ components. append ( . tripleTab + " name = \( name) ; " )
27
+ }
26
28
components. append ( . tripleTab + " outputPaths = \( outputPaths) ; " )
27
29
components. append ( . tripleTab + " runOnlyForDeploymentPostprocessing = \( runOnlyForDeploymentPostprocessing) ; " )
28
30
components. append ( . tripleTab + " shellPath = \( shellPath) ; " )
@@ -40,7 +42,7 @@ final class ScriptBody: BaseScriptBody {
40
42
buildActionMask: String = " 2147483647 " ,
41
43
files: [ File ] = [ ] ,
42
44
inputPaths: String = " ( \n \t \t \t ) " ,
43
- name: String ,
45
+ name: String ? ,
44
46
outputPaths: String = " ( \n \t \t \t ) " ,
45
47
runOnlyForDeploymentPostprocessing: String = " 0 " ,
46
48
shellPath: String = " /bin/sh " ,
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ final class ShellScriptsService {
92
92
let isa = body [ " isa " ] ,
93
93
let buildActionMask = body [ " buildActionMask " ] ,
94
94
let inputPaths = body [ " inputPaths " ] ,
95
- let name = body [ " name " ] ,
96
95
let outputPaths = body [ " outputPaths " ] ,
97
96
let runOnlyForDeploymentPostprocessing = body [ " runOnlyForDeploymentPostprocessing " ] ,
98
97
let shellPath = body [ " shellPath " ] ,
@@ -108,7 +107,7 @@ final class ShellScriptsService {
108
107
buildActionMask: buildActionMask,
109
108
files: files,
110
109
inputPaths: inputPaths,
111
- name: name,
110
+ name: body [ " name " ] ,
112
111
outputPaths: outputPaths,
113
112
runOnlyForDeploymentPostprocessing: runOnlyForDeploymentPostprocessing,
114
113
shellPath: shellPath,
You can’t perform that action at this time.
0 commit comments