Skip to content

Commit b0ddb51

Browse files
committed
#74 Avoid delete of cached plaintext objects on upgrading
When the user is upgrading their transcrypt we don't need to do the extra work of deleting cached plaintext objects as part of the uninstall step, because the repo is about to be re-inited anyway.
1 parent 2e0bebe commit b0ddb51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

transcrypt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ uninstall_transcrypt() {
581581
if [[ $answer =~ $YES_REGEX ]]; then
582582
clean_gitconfig
583583

584-
remove_cached_plaintext
584+
if [[ ! $upgrade ]]; then
585+
remove_cached_plaintext
586+
fi
585587

586588
# remove helper scripts
587589
for script in {clean,smudge,textconv,merge}; do

0 commit comments

Comments
 (0)