mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 阻止在 Live OS 下运行 reinstall.sh
This commit is contained in:
parent
a4eaa2186a
commit
3fcbc8fd75
@ -3375,6 +3375,10 @@ remove_useless_initrd_files() {
|
||||
}
|
||||
|
||||
# 脚本入口
|
||||
if mount | grep -q 'tmpfs on / type tmpfs'; then
|
||||
error_and_exit "Can't run this script in Live OS."
|
||||
fi
|
||||
|
||||
if is_in_windows; then
|
||||
# win系统盘
|
||||
c=$(echo $SYSTEMDRIVE | cut -c1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user