Skip to content

Commit

Permalink
make sure extraFiles is always defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 16, 2024
1 parent af2d9d0 commit a422dbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kexecExtraFlags=""
enableDebug=""
diskoScript=""
nixosSystem=""
extraFiles=""
nixOptions=(
--extra-experimental-features 'nix-command flakes'
"--no-write-lock-file"
Expand Down Expand Up @@ -290,7 +291,7 @@ runVmTest() {
echo "--vm-test is not supported with --build-on-remote" >&2
exit 1
fi
if [[ -n ${extraFiles-} ]]; then
if [[ -n ${extraFiles} ]]; then
echo "--vm-test is not supported with --extra-files" >&2
exit 1
fi
Expand Down

0 comments on commit a422dbd

Please sign in to comment.