File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ step() {
123
123
}
124
124
125
125
parseArgs () {
126
+ local substituteOnDestination=y
127
+ local printBuildLogs=n
126
128
while [[ $# -gt 0 ]]; do
127
129
case " $1 " in
128
130
-f | --flake)
@@ -226,7 +228,7 @@ parseArgs() {
226
228
nixOptions+=(" --option" " $key " " $value " )
227
229
;;
228
230
--no-substitute-on-destination)
229
- nixCopyOptions+=( " --substitute-on-destination " )
231
+ substituteOnDestination=n
230
232
;;
231
233
--build-on-remote)
232
234
buildOnRemote=y
@@ -249,10 +251,14 @@ parseArgs() {
249
251
shift
250
252
done
251
253
252
- if [[ ${printBuildLogs-n } == " y" ]]; then
254
+ if [[ ${printBuildLogs} == " y" ]]; then
253
255
nixOptions+=(" -L" )
254
256
fi
255
257
258
+ if [[ $substituteOnDestination == " y" ]]; then
259
+ nixCopyOptions+=(" --substitute-on-destination" )
260
+ fi
261
+
256
262
if [[ $vmTest == " n" ]] && [[ -z ${sshConnection} ]]; then
257
263
abort " ssh-host must be set"
258
264
fi
You can’t perform that action at this time.
0 commit comments