pull/328/merge
Jamie Kirkpatrick 2021-08-30 18:02:01 +03:00 committed by GitHub
commit 49a25fe433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -91,7 +91,12 @@ pane_contents_create_archive() {
pane_content_files_restore_from_archive() {
local archive_file="$(pane_contents_archive_file)"
if [ -f "$archive_file" ]; then
mkdir -p "$(pane_contents_dir "restore")"
rm "$(pane_contents_dir "restore")"/*
if [ -d "$(pane_contents_dir "restore")" ]; then
rm -rf "$(pane_contents_dir "restore")"/*
else
mkdir -p "$(pane_contents_dir "restore")"
fi
gzip -d < "$archive_file" |
tar xf - -C "$(resurrect_dir)/restore/"
fi

View File

@ -270,9 +270,6 @@ restore_all_panes() {
restore_pane "$line"
fi
done < $(last_resurrect_file)
if is_restoring_pane_contents; then
rm "$(pane_contents_dir "restore")"/*
fi
}
handle_session_0() {