mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: remove Bash dependency in favor of sh
The script works just fine with `sh`. Also replace nonstandard `test` operator `==` with the standard `=`. The other changes are mostly cosmetic.
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh -e
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ ! -x "$UDEV_HWDB" ]; then
|
if [ ! -x "$UDEV_HWDB" ]; then
|
||||||
echo "E: UDEV_HWDB (${UDEV_HWDB}) unset or not executable."
|
echo "E: UDEV_HWDB (${UDEV_HWDB}) unset or not executable."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UDEV_HWDB_CHECK_CONTENTS" == 1 ]; then
|
if [ "$UDEV_HWDB_CHECK_CONTENTS" = 1 ]; then
|
||||||
generated_rules=$(mktemp "${TMPDIR:-/tmp}/libfprint-XXXXXX.hwdb")
|
generated_rules=$(mktemp "${TMPDIR:-/tmp}/libfprint-XXXXXX.hwdb")
|
||||||
else
|
else
|
||||||
generated_rules=/dev/null
|
generated_rules=/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user