Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update-tags.sh异常处理不完善 #120

Open
rainmote opened this issue Oct 7, 2016 · 1 comment
Open

update-tags.sh异常处理不完善 #120

rainmote opened this issue Oct 7, 2016 · 1 comment

Comments

@rainmote
Copy link

rainmote commented Oct 7, 2016

vimfiles/tools/shell/bash/update-tags.sh

我遇到[: =: unary operator expected错误

6 if [ ${CUSTOM} = true ]; then
7 echo " |- move custom ctags to ${TARGET}"
8 cp "${SOURCE}" "${TARGET}"
9 else

第6行,${CUSTOM}不存在,会报错退出。
if [[ ${CUSTOM} = true ]]; then

@Stan-He
Copy link

Stan-He commented Jan 12, 2017

我也遇到同样的问题,在我的ubuntu14的环境中,无论是使用dash还是bash,判断数组是否为空都不能用 if [ ${CUSTOM} = true ]的语法,我觉得用if [ ${CUSTOM} ]; then就行了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants