You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes ShellCheck findings in kdumpctl introduced by the
kdumpct test rewrite. In particular it fixes the following
In kdumpctl line 192:
_ret=$?
^--^ SC2178 (warning): Variable was used as an array but is now assigned a string.
In kdumpctl line 195:
return $_ret
^---^ SC2128 (warning): Expanding an array without an index only gives the first element.
In kdumpctl line 1692:
if [[ "$?" -ne 0 ]]; then
^--^ SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
In kdumpctl line 1739:
mkdir -p $TMPMNT
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
mkdir -p "$TMPMNT"
In kdumpctl line 1841:
read -p "DANGER!!! Will perform a kdump test by crashing the system, proceed? (y/N): " input
^--^ SC2162 (info): read without -r will mangle backslashes.
Fixes: 24e7622 ("Re-introduce vmcore creation notification to kdump")
Signed-off-by: Philipp Rudo <[email protected]>
0 commit comments