mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add container check funtion
This commit is contained in:
parent
47dbfea71d
commit
47da8e3d0e
1 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,14 @@ _riscv64_check() {
|
|||
fi
|
||||
}
|
||||
|
||||
### check if running in container
|
||||
_container_check() {
|
||||
if [[ $(grep -q bash /proc/1/sched) ]]; then
|
||||
echo "ERROR: Running inside container. Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
### check for tpowa's build server
|
||||
_buildserver_check() {
|
||||
if [[ ! "$(cat /etc/hostname)" == "T-POWA-LX" ]]; then
|
||||
|
|
Loading…
Reference in a new issue