mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-25 11:42:20 +08:00
update tool/ssinstall.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
1506b74b01
commit
484a82b00b
@ -76,18 +76,21 @@ IS_MD5SUM_CHECKD=`cat $PACKAGES_DATA_PATH | grep $DEB_MD5SUM`
|
|||||||
if [ $# -eq 0 ];then
|
if [ $# -eq 0 ];then
|
||||||
echo "没有接收到参数,退出"
|
echo "没有接收到参数,退出"
|
||||||
echo "用法:$0 deb路径"
|
echo "用法:$0 deb路径"
|
||||||
|
echo "OMG-IT-GOES-WRONG"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$1" ]
|
if [ ! -f "$1" ]
|
||||||
then
|
then
|
||||||
echo "${TRANSHELL_CONTENT_FILE_NOT_EXIST}"
|
echo "${TRANSHELL_CONTENT_FILE_NOT_EXIST}"
|
||||||
|
echo "OMG-IT-GOES-WRONG"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ];then
|
if [ "$(id -u)" != "0" ];then
|
||||||
#############################无root权限时
|
#############################无root权限时
|
||||||
echo "${TRANSHELL_CONTENT_PLEASE_RUN_AS_ROOT}"
|
echo "${TRANSHELL_CONTENT_PLEASE_RUN_AS_ROOT}"
|
||||||
|
echo "OMG-IT-GOES-WRONG"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user