swtpm/tests/load_vtpm_proxy
Stefan Berger c2b54e6ab5 tests: Fix shellcheck issue SC2148 by adding a shell directive
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2023-01-30 18:25:45 -05:00

13 lines
280 B
Plaintext

# shellcheck shell=bash
# For the license, see the LICENSE file in the root directory.
# Some distros may not have the device
if [ ! -c /dev/vtpmx ]; then
if ! modprobe tpm_vtpm_proxy; then
echo "Skipping test using vtpm proxy module: module not available"
exit 77
fi
fi