mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-28 14:04:33 -04:00
Add check for the built-in browser in WebDeepin.sh
This commit is contained in:
parent
6b78603dd3
commit
c02a6955c3
1 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,18 @@
|
||||||
LOGFILE=log.txt
|
LOGFILE=log.txt
|
||||||
VUSER=$(get_user)
|
VUSER=$(get_user)
|
||||||
|
|
||||||
|
if which browser >/dev/null 2>&1; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
if [ "$LANG" = "zh_CN.UTF-8" ]; then
|
||||||
|
echo " Built-in browser not found in the system, please use VentoyWeb.sh ..."
|
||||||
|
else
|
||||||
|
echo " 未找到系统内置的 browser (卸载了?)请使用 VentoyWeb.sh ..."
|
||||||
|
fi
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -e $LOGFILE ]; then
|
if [ -e $LOGFILE ]; then
|
||||||
chown $VUSER $LOGFILE
|
chown $VUSER $LOGFILE
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue