X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/807ddaaed8d86a117871c41895346f25f6f93890..95df1235329282589487634575cb914db0254518:/vcsh?ds=inline diff --git a/vcsh b/vcsh index 594368d..24c8921 100755 --- a/vcsh +++ b/vcsh @@ -25,12 +25,12 @@ while getopts "c:dv" flag; do if [ "$1" = '-d' ] || [ "$1" = '--debug' ]; then set -vx VCSH_DEBUG=1 - shift 1 elif [ "$1" = '-v' ];then VCSH_VERBOSE=1 elif [ "$1" = '-c' ];then VCSH_OPTION_CONFIG=$OPTARG fi + shift 1 done source_all() { @@ -72,13 +72,13 @@ help() { options: -c Source file -d Enable debug mode - -d Enable verbose mode + -v Enable verbose mode commands: clone \\ [] Clone from an existing repository - delete Delete an existing repository - enter Enter repository; spawn new instance of \$SHELL + delete Delete an existing repository + enter Enter repository; spawn new instance of \$SHELL help Display this help text init Initialize a new repository list List all repositories @@ -89,7 +89,7 @@ help() { Rename repository run \\ Use this repository - setup Set up repository with recommended settings + setup Set up repository with recommended settings which Find substring in name of any tracked file write-gitignore \\ Write .gitignore.d/ via git ls-files @@ -151,7 +151,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 - rm -r "$GIT_DIR" || error "could not delete '$GIT_DIR'" + rm -rf "$GIT_DIR" || error "could not delete '$GIT_DIR'" } enter() {