diff --git a/scripts/update-nix-files.sh b/scripts/update-nix-files.sh index 33ecea25..bba5a451 100755 --- a/scripts/update-nix-files.sh +++ b/scripts/update-nix-files.sh @@ -38,8 +38,10 @@ write-package-shell-nix () { update-nix-files () { for s in ${SOURCES[@]} ; do - cd "$s" && cabal2nix . > default.nix + pushd "$s" > /dev/null + cabal2nix . > default.nix write-package-shell-nix $s + popd > /dev/null done }