Skip to content

Commit

Permalink
kexec-run: set pipefail if the shell supports it
Browse files Browse the repository at this point in the history
i.e. we currently don't catch the case where `cpio` is missing on a
system.
  • Loading branch information
Mic92 authored and mergify[bot] committed Dec 24, 2024
1 parent 3df9702 commit 2220c4d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nix/kexec-installer/kexec-run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/sh

set -ex
# Set pipefail if the shell supports it.
if set -o | grep -q pipefail; then
# shellcheck disable=SC3040
set -o pipefail
fi
set -eux


kexec_extra_flags=""

Expand Down

0 comments on commit 2220c4d

Please sign in to comment.