summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-03-19 23:14:45 +0100
committertv <tv@shackspace.de>2015-05-19 23:12:12 +0200
commit29d168ae28fd909c78c6b458a2905d705a36ddbc (patch)
tree4780d25b1e560b9596b172713590f61d7e131db4
parent4442053d0e41838af0670f38e86e1bd7aa426e3a (diff)
run: simulate pipefail
-rwxr-xr-xrun4
1 files changed, 3 insertions, 1 deletions
diff --git a/run b/run
index 7461f39ba..073111f1d 100755
--- a/run
+++ b/run
@@ -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"