run: simulate pipefail
This commit is contained in:
parent
4442053d0e
commit
29d168ae28
4
run
4
run
@ -17,7 +17,9 @@ deploy() {(
|
|||||||
main=$1
|
main=$1
|
||||||
target=$2
|
target=$2
|
||||||
|
|
||||||
rsync_filter "$main" \
|
filter=$(rsync_filter "$main")
|
||||||
|
|
||||||
|
echo "$filter" \
|
||||||
| rsync -f '. -' -zvrlptD --delete-excluded ./ "$target":/etc/nixos/
|
| rsync -f '. -' -zvrlptD --delete-excluded ./ "$target":/etc/nixos/
|
||||||
|
|
||||||
ssh "$target" nixos-rebuild switch -I nixos-config=/etc/nixos/"$main"
|
ssh "$target" nixos-rebuild switch -I nixos-config=/etc/nixos/"$main"
|
||||||
|
Loading…
Reference in New Issue
Block a user