Skip to content

Commit 35558d9

Browse files
committed
Use zip -b /tmp
Closes gh-36
1 parent c203826 commit 35558d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: rsync-antora-reference/src/zip_docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ __zip_docs() {
5454
# The path exists
5555
cd "$ssh_docs_path"
5656
echo "Zipping content in '$ssh_docs_path' to '$zip_name'"
57-
zip -r "$zip_name" . *
57+
zip -r "$zip_name" -b /tmp . *
5858
cd -
5959
else
6060
# The path does not exist so fail

Diff for: rsync-antora-reference/test/test-zip_docs.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ usage: zip_docs.sh [OPTION]...
7777
assert_success
7878
assert_output "Zipping content in '$dir' to 'spring-security-docs.zip'
7979
$(pwd)"
80-
assert_program_args "zip" "-r spring-security-docs.zip . *"
80+
assert_program_args "zip" "-r spring-security-docs.zip -d /tmp . *"
8181

8282
unstub zip
8383
}

0 commit comments

Comments
 (0)