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