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?ds=inline;hp=86f23d0b17a90028f230248c85e068da596fe666 Fix `vcsh delete` Use rm -r instead of rmdir as the directory will _never_ be empty --- 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() {