From b4078210a72a210c5a505b8d34ad4eb249fe735e Mon Sep 17 00:00:00 2001 From: Mert Dirik Date: Tue, 21 Oct 2014 00:25:43 +0300 Subject: [PATCH 1/1] Force temporary file/directory removal --- vcsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcsh b/vcsh index b10d809..fb1c091 100755 --- a/vcsh +++ b/vcsh @@ -314,7 +314,8 @@ list_untracked() { comm -12 --nocheck-order $temp_file_others $temp_file_untracked_copy > $temp_file_untracked done cat $temp_file_untracked - rm -r $temp_file_others $temp_file_untracked $temp_file_untracked_copy $temp_repo || fatal 'Could not delete temp file' + rm -f $temp_file_others $temp_file_untracked $temp_file_untracked_copy || fatal 'Could not delete temp files' + rm -rf $temp_repo || fatal 'Could not delete temp repo' } rename() { -- 2.39.5