Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
30ignition: make var in dracut_func local
Browse files Browse the repository at this point in the history
No reason to leak this outside the function.
  • Loading branch information
jlebon committed Jun 18, 2020
1 parent b74341a commit e9ed195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dracut/30ignition/coreos-teardown-initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ load_dracut_libs() {
dracut_func() {
# dracut is not friendly to set -eu
set +euo pipefail
"$@"; rc=$?
"$@"; local rc=$?
set -euo pipefail
return $rc
}
Expand Down

0 comments on commit e9ed195

Please sign in to comment.