Skip to content

Commit

Permalink
Merge pull request #4 from satmandu/patch-1
Browse files Browse the repository at this point in the history
Have zstd remove uncompressed files after compression.
  • Loading branch information
uberhacker authored Nov 19, 2022
2 parents 515ffee + 07ef2e2 commit 469c9c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compressdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERSION=20211031
VERSION=20221119

# Setting CDPATH in the environment may cause issues
unset CDPATH
Expand Down Expand Up @@ -507,7 +507,7 @@ for DIR in $MAN_DIR; do
echo "Compressed $FILE" > $DEST_FD1
;;
*zst)
zstd ${COMP_LVL} "$FILE" && chmod 644 "${FILE}${COMP_SUF}"
zstd --rm ${COMP_LVL} "$FILE" && chmod 644 "${FILE}${COMP_SUF}"
echo "Compressed $FILE" > $DEST_FD1
;;
*)
Expand Down

0 comments on commit 469c9c8

Please sign in to comment.