Skip to content

Commit ef626ea

Browse files
authored
fix: diskoMode can be empty
1 parent edf1adb commit ef626ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ parseArgs() {
356356
shift
357357
done
358358

359-
diskoAttr="${diskoMode}Script"
360-
361359
if [[ ${diskoMode} != "" ]]; then
362360
if [[ ${diskoScript} != "" ]]; then
363361
abort "--disko-mode cannot be used if --store-paths is used"
@@ -366,6 +364,8 @@ parseArgs() {
366364
diskoMode=disko
367365
fi
368366

367+
diskoAttr="${diskoMode}Script"
368+
369369
if [[ ${diskoDeps} == "n" ]]; then
370370
diskoAttr="${diskoAttr}NoDeps"
371371
fi

0 commit comments

Comments
 (0)