![zip을 사용하여 디렉터리를 무시할 수 없습니다.](https://linux55.com/image/171540/zip%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EB%94%94%EB%A0%89%ED%84%B0%EB%A6%AC%EB%A5%BC%20%EB%AC%B4%EC%8B%9C%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
나는 다음 명령을 가지고 있습니다 :
#!/usr/bin/env bash
set -eo pipefail
cd "$(dirname "$(dirname "$BASH_SOURCE")")"
zip -9 -r zips/function.zip . \
-x '*.git*' -x '*.idea*' -x '*.idea*' \
-x */node_modules/typescript/* \
-x */zips/* -x '*.zip' -x */node_modules/puppeteer/*
어떤 이유로 출력에 다음이 표시됩니다.
updating: node_modules/typescript/loc/lcl/PTB/Targets/ (stored 0%)
updating: node_modules/typescript/loc/lcl/PTB/Targets/ProjectItemsSchema.xaml.lcl (deflated 63%)
updating: node_modules/typescript/loc/lcl/PTB/Targets/TypeScriptProjectProperties.xaml.lcl (deflated 90%)
updating: node_modules/typescript/loc/lcl/PTB/Targets/TypeScriptCompile.xaml.lcl (deflated 86%)
그래서 내 생각엔
*/node_modules/typescript/*
무시되지 않음:
node_modules/typescript
?