Skip to content

Commit 175f0b5

Browse files
authored
feat: Exclude unnecessary files when unpacking the standalone package (#152)
1 parent 3db0b67 commit 175f0b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/get-higress.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ download() {
200200

201201
# install installs the product.
202202
install() {
203-
tar -zx --exclude="docs" --exclude="src" --exclude="test" -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --strip-components=1
203+
tar -zx --exclude=".github" --exclude="all-in-one" --exclude="docs" --exclude="src" --exclude="test" --exclude="CODEOWNERS" -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --strip-components=1
204204
echo -n "$VERSION" > "$DESTINATION/VERSION"
205205
bash "$DESTINATION/bin/configure.sh" ${CONFIG_ARGS[@]}
206206
}
@@ -225,7 +225,7 @@ update() {
225225
download
226226
echo ""
227227

228-
tar -zx --exclude="docs" --exclude="src" --exclude="test" --exclude="compose/.env" -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --strip-components=1
228+
tar -zx --exclude=".github" --exclude="all-in-one" --exclude="docs" --exclude="src" --exclude="test" --exclude="CODEOWNERS" --exclude="compose/.env" -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --strip-components=1
229229
tar -zx -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --transform='s/env/env_new/g' --strip-components=1 "higress-standalone-${VERSION#v}/compose/.env"
230230
bash "$DESTINATION/bin/update.sh"
231231
echo -n "$VERSION" > "$DESTINATION/VERSION"

0 commit comments

Comments
 (0)