mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 15:53:02 +01:00
Remove broken Docker check
The Docker detection method doesn't work on cgroup v2 systems, so the script just keeps erroring out. There doesn't seem to be a simple way to detect that we are running inside a Docker container, so it makes sense to drop that check altogether.
This commit is contained in:
parent
b71c6a3792
commit
55944aa5a9
@ -64,12 +64,6 @@ set -eu
|
||||
ARTIFACT_DIR="/artifact"
|
||||
TOXIC_SRC_DIR="/toxic"
|
||||
|
||||
# Make sure we run in the expected environment
|
||||
if ! grep -q 'docker' /proc/1/cgroup
|
||||
then
|
||||
echo "Error: This script should be run inside a disposable Docker container as it might modify system files in ways that would break a real system."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/os-release ] || ! grep -qi 'Alpine Linux' /etc/os-release
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user