Merge branch 'master' into dev

This commit is contained in:
midoks
2022-06-24 19:42:19 +08:00
3 changed files with 21 additions and 6 deletions
+7 -2
View File
@@ -9,13 +9,18 @@ startTime=`date +%s`
_os=`uname`
echo "use system: ${_os}"
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then
+7 -2
View File
@@ -9,13 +9,18 @@ startTime=`date +%s`
_os=`uname`
echo "use system: ${_os}"
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then
+7 -2
View File
@@ -9,13 +9,18 @@ startTime=`date +%s`
_os=`uname`
echo "use system: ${_os}"
if [ "$EUID" -ne 0 ]
then echo "Please run as root!"
exit
fi
if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
#sudo dpkg-reconfigure dash
fi
if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
ln -sf /bin/bash /bin/sh
fi
if [ ${_os} == "Darwin" ]; then