check if we're on a live system instead

This commit is contained in:
Adeeb Shihadeh
2026-05-03 15:40:15 -07:00
parent b34360b967
commit 4c9b44b076
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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