Skip to content

Commit

Permalink
chore(*): use realpath to get absolute path of .devenv/state/pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
noverby committed Feb 3, 2025
1 parent a66623a commit 3d533ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devenv-devShell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pkgs.writeScriptBin "devenv" ''
case $command in
up)
procfilescript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-up' --no-link --print-out-paths --override-input devenv-root path:.devenv/state/pwd)
procfilescript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-up' --no-link --print-out-paths --override-input devenv-root path:$(realpath .devenv/state/pwd))
if [ "$(cat $procfilescript|tail -n +2)" = "" ]; then
echo "No 'processes' option defined: https://devenv.sh/processes/"
exit 1
Expand All @@ -29,7 +29,7 @@ pkgs.writeScriptBin "devenv" ''
;;
test)
testscript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-test' --no-link --print-out-paths --override-input devenv-root path:.devenv/state/pwd)
testscript=$(nix build '.#${shellPrefix (config._module.args.name or "default")}devenv-test' --no-link --print-out-paths --override-input devenv-root path:$(realpath .devenv/state/pwd))
exec $testscript "$@"
;;
Expand Down

0 comments on commit 3d533ee

Please sign in to comment.