mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
Revert "tests: Add trap statement in kata doc script"
This reverts commit 093a6fd542
.
as it is breaking the static checks
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
eb04caaf8f
commit
b1cffb4b09
@ -168,7 +168,6 @@ doc_to_script()
|
|||||||
|
|
||||||
all=$(mktemp)
|
all=$(mktemp)
|
||||||
body=$(mktemp)
|
body=$(mktemp)
|
||||||
trap 'rm -f $body $all' EXIT
|
|
||||||
|
|
||||||
cat "$file" |\
|
cat "$file" |\
|
||||||
sed -n "/^ *${bash_block_open}/,/^ *${block_close}/ p" |\
|
sed -n "/^ *${bash_block_open}/,/^ *${block_close}/ p" |\
|
||||||
@ -189,6 +188,9 @@ doc_to_script()
|
|||||||
|
|
||||||
# create output file
|
# create output file
|
||||||
[ "$check_only" = "no" ] && cp "$all" "$outfile"
|
[ "$check_only" = "no" ] && cp "$all" "$outfile"
|
||||||
|
|
||||||
|
# clean up
|
||||||
|
rm -f "$body" "$all"
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user