Commit 64d19f7
committed
meta-lxatac-software: lxatac-core-bundle-base: accept empty migrate.d dir
Prior to this patch the part of the hook script that handles migration of
user-specified files will fail if the `/etc/rauc/migrate.d` directory
exists but does not contain any `*.conf` files.
Make sure that the glob expands to nothing instead of the string
`/etc/rauc/migrate.d/*.conf` in this case by setting the `nullglob`
option. This also removes the need for the ineffective check for the
existance of the `/etc/rauc/migrate.d` directory.
This also affects the other for loop with a glob, which searches for
available certificate files. The behaviour of this loop also matches the
expected behaviour better with the `nullglob` option enabled.
Signed-off-by: Leonard Göhrs <[email protected]>1 parent a8f4390 commit 64d19f7
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
0 commit comments