X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/2c3fe25a0f2995172bab019ca31ad69c21224191..52a0974a2497b483d88c49377283c9b8f2520a85:/lib/vcsh?ds=sidebyside diff --git a/lib/vcsh b/lib/vcsh index fed9de4..6681efd 100644 --- a/lib/vcsh +++ b/lib/vcsh @@ -6,10 +6,10 @@ #[$HOME/.config/vcsh/repo.d/zsh.git] #checkout = vcsh clone git://github.com/RichiH/zshrc.git zsh -vcsh_test = - test -d "$MR_REPO"/refs/heads && test -d "$MR_REPO"/refs/tags && - test -d "$MR_REPO"/objects && test -f "$MR_REPO"/config && - test "`GIT_CONFIG="$MR_REPO"/config git config --get vcsh.vcsh`" = true +vcsh_test = perl: + -d "$ENV{MR_REPO}/refs/heads" && -d "$ENV{MR_REPO}/refs/tags" && + -d "$ENV{MR_REPO}/objects" && -f "$ENV{MR_REPO}/config" && + `GIT_CONFIG="$ENV{MR_REPO}"/config git config --get vcsh.vcsh` =~ /true/ vcsh_update = vcsh run "$MR_REPO" git pull "$@"