【发布时间】:2017-11-09 14:10:28
【问题描述】:
在 osx 上运行...
cd ${BUILD_DIR}/mydir && for DIR in $(find ./ '.*[^_].py' | sed 's/\/\//\//g' | awk -F "/" '{print $2}' | sort |uniq | grep -v .py); do
if [ -f $i/requirements.txt ]; then
pip install -r $i/requirements.txt -t $i/
fi
cd ${DIR} && zip -r ${DIR}.zip * > /dev/null && mv ${DIR}.zip ../../ && cd ../
done
cd ../
错误:
(env) ➜ sh package_lambdas.sh find: .*[^_].py: No such file or directory
为什么?
【问题讨论】:
-
为什么这个问题有makefile标签?
标签: python macos shell makefile terminal