Fixed Bug

This commit is contained in:
2023-04-30 21:00:19 +03:00
parent 513e02d4e2
commit dfa22ce4e5

2
harden
View File

@@ -250,6 +250,8 @@ function kernelSecurityModuleInit {
}
function dockerInit {
# Add user to docker group to avoid using sudo when running docker commands
sudo usermod -aG docker "$USER"
# Get all arguments passed to the function and store them in the dockerImages array
local dockerImages=("$@")
# Check if the dockerImages array is empty and return 0 if it is