From: Mert Dirik Date: Mon, 20 Oct 2014 21:25:43 +0000 (+0300) Subject: Force temporary file/directory removal X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/b4078210a72a210c5a505b8d34ad4eb249fe735e?ds=sidebyside;hp=9867819bf0fc3882b9ede33462b6d98f10b7535a Force temporary file/directory removal --- 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() {