我正在尝试将“描述”添加到 $(@)/etc/release 文件中,前提是它还没有
$(PROJECTDIR)/projectroot:
if [ grep -q "description" "$(@)/etc/release" ]; then \
echo "description :" $(PLATFORM) >> $(@)/etc/release; \
fi
但它会抛出错误“/bin/sh: line 0: [: too many arguments”并且不对发布文件做任何事情。你能帮忙吗?非常感谢。