错误提示:
cocos2d-iphone template installer
Error: Do not run this script as root.
'root' is no longer supported
RECOMMENDED WAY:
./install-templates.sh -f解决方法:删除文件中关于root权限的验证代码
# Make sure root is not executed
if [[ "$(id -u)" == "0" ]]; then
echo ""
echo "Error: Do not run this script as root." 1>&2
echo ""
echo "'root' is no longer supported" 1>&2
echo ""
echo "RECOMMENDED WAY:" 1>&2
echo " $0 -f" 1>&2
echo ""
exit 1
fi

本文介绍了一种解决cocos2d-iphone模板安装过程中出现的错误提示方法,通过删除验证root权限的代码来避免使用root账户运行脚本导致的问题。
1785

被折叠的 条评论
为什么被折叠?



