]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
test(SYSTEMD): do not use test with globbing main
authorBenjamin Drung <benjamin.drung@canonical.com>
Mon, 3 Aug 2026 10:41:29 +0000 (12:41 +0200)
committerdevkontrol <dev@kontrol.dev>
Mon, 3 Aug 2026 13:51:29 +0000 (09:51 -0400)
commit41cf01e21c2ca03d5a122b3b26d5e101d34d9d6a
tree56bbb805ffda301422d80676090e464f7de1e255
parent8993ac6d88cd9e7cb97f5ae29d594a517afc2c7b
test(SYSTEMD): do not use test with globbing

There might be multiple files matching the globbing as it can be seen on
`arch:latest`:

```
./test.sh: line 49: [: /usr/lib/libfido2.so.1: binary operator expected
```

Use `compgen` to check if the glob pattern matches one or more files
without failing on multiple matches.

Follow-up for 48e4665c97b3c71f485b95426e5bf00dae3ab1ab
test/TEST-40-SYSTEMD/test.sh