mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-13 20:29:29 -05:00
set "shopt -s nullglob" to avoid failing when folder /etc/hide-hardware-info.d
does not exist or is empty
This commit is contained in:
parent
b05663c5f6
commit
cfbd77040a
@ -6,12 +6,16 @@
|
||||
sysfs_whitelist=1
|
||||
cpuinfo_whitelist=1
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
## Allows for disabling the whitelist.
|
||||
for i in /etc/hide-hardware-info.d/*.conf
|
||||
do
|
||||
source "${i}"
|
||||
done
|
||||
|
||||
exit
|
||||
|
||||
create_whitelist() {
|
||||
if [ "${1}" = "sysfs" ]; then
|
||||
whitelist_path="/sys"
|
||||
|
Loading…
Reference in New Issue
Block a user