Fix update-nix-files.sh to run correctly

This commit is contained in:
Jonathan Lange 2015-09-08 20:28:57 +01:00
parent a265fd31a0
commit e4ce3b95e5

View File

@ -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
}