mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-06-08 11:04:51 +08:00
check if we're on a live system instead
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Skip while Docker is assembling the image.
|
||||
if [ -f /.dockerenv ]; then
|
||||
# Skip unless this is a booted systemd system.
|
||||
if [ ! -d /run/systemd/system ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Skip while Docker is assembling the image.
|
||||
if [ -f /.dockerenv ]; then
|
||||
# Skip unless this is a booted systemd system.
|
||||
if [ ! -d /run/systemd/system ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user