run: simulate pipefail

This commit is contained in:
tv 2015-03-19 23:14:45 +01:00
parent 4442053d0e
commit 29d168ae28
1 changed files with 3 additions and 1 deletions

4
run
View File

@ -17,7 +17,9 @@ deploy() {(
main=$1
target=$2
rsync_filter "$main" \
filter=$(rsync_filter "$main")
echo "$filter" \
| rsync -f '. -' -zvrlptD --delete-excluded ./ "$target":/etc/nixos/
ssh "$target" nixos-rebuild switch -I nixos-config=/etc/nixos/"$main"