Skip to content

Commit

Permalink
create subdirs for --generate-hardware-config if they did not exist…
Browse files Browse the repository at this point in the history
… yet
  • Loading branch information
KiaraGrouwstra authored and mergify[bot] committed Oct 21, 2024
1 parent bf8e74f commit 51d347d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ importFacts() {

generateHardwareConfig() {
local maybeSudo="$maybeSudo"
mkdir -p "$(dirname "$hardwareConfigPath")"
case "$hardwareConfigBackend" in
nixos-facter)
if [[ ${isInstaller} == "y" ]]; then
Expand Down

0 comments on commit 51d347d

Please sign in to comment.