Skip to content

Commit

Permalink
use realpath to allow relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassulus committed Jan 20, 2019
1 parent ca7df9d commit dd1faf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos-generate
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ if [[ ! -e $format_path ]]; then
abort "format '$format_path' not found"
fi

configuration_path=$(realpath "$configuration_path")
format_path=$(realpath "$format_path")

args=(
"$libexec_dir/eval-format.nix"
--arg configuration "$configuration_path"
Expand Down

0 comments on commit dd1faf4

Please sign in to comment.