bookfere/KindleEar-Uploader

【已自助解决并留下经验】使用脚本部署kindleear出现错误,请求帮助

Closed this issue · 1 comments

错误提示如下,操作前已经在cloudshell中删干净文件。首次使用cloudshell时无此错误提示,很奇怪!
./uploader.sh: line 41: appcfg.py: command not found
./uploader.sh: line 42: appcfg.py: command not found
-bash: update_devshell_project_id: command not found

出现这个错误的原因很简单,就是我在把玩cloud shell时启用了在线代码编辑器功能,并且把里面的文件全部删掉的后果。
好在有人已经碰到了这个问题,这里贴上链接:https://code.google.com/p/google-cloud-platform/issues/detail?id=139
由于邮件地址是匿名的,所以就不知道具体的提问和回答者了,不便提及,一并表示感谢。
看不懂的同学,我这里贴上答案,
直接在cloud shell命令界面输入如下两段代码:
第一段:
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
第二段:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
然后重新使用作者提供的一键脚本就不会出错了~