nixos-rebuild: fail if any case of pull fails.

This commit is contained in:
Lluís Batlle i Rossell 2012-06-27 21:56:29 +02:00
parent 5b7c019e2a
commit de87b07bb3

View file

@ -130,7 +130,7 @@ if [ -n "$pullManifest" -o "$action" = pull ]; then
| grep '<string' | sed 's^.*"\(.*\)".*^\1^g')
set -o nopipefail
[ "$action" = pull -a $? -ne 0 ] && exit 1
if [ $? -ne 0 ]; then exit 1; fi
mkdir -p /nix/var/nix/channel-cache
for i in $manifests; do