From: Richard Hartmann Date: Fri, 10 Feb 2012 16:38:35 +0000 (+0100) Subject: Fix `vcsh delete` X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/80ebb8dcdf12f32873670c8adcdd8d49ca2c7b01?hp=--cc Fix `vcsh delete` Use rm -r instead of rmdir as the directory will _never_ be empty --- 80ebb8dcdf12f32873670c8adcdd8d49ca2c7b01 diff --git a/vcsh b/vcsh index 41d5ed0..a578487 100755 --- a/vcsh +++ b/vcsh @@ -100,7 +100,7 @@ To continue, type 'Yes, do as I say'" for file in $files; do rm -f $file || info "could not delete '$file', continuing with deletion" done - rmdir "$GIT_DIR" || error "could not delete '$GIT_DIR'" + rm -r "$GIT_DIR" || error "could not delete '$GIT_DIR'" } enter() {