From 8f7e2d1e2d0f52a76dafc8ea5dd103e1fb6701fb Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 4 Dec 2015 02:20:37 -0800 Subject: [PATCH] update 22 --- autoupdate | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/autoupdate b/autoupdate index 35b36b6..1318b16 100755 --- a/autoupdate +++ b/autoupdate @@ -1,13 +1,11 @@ #!/usr/bin/env zsh set -e -alias db="dropbox_uploader" rm -r lib -db -q download py/lib >/dev/null +dropbox_uploader -q download py/lib >/dev/null if [ ! -d .git ]; then git -q init - [ -e version ] && rm version git add .gitignore '*' '**/*' else git add -A @@ -15,14 +13,8 @@ else [ "$changes" -eq 0 ] && exit 0 fi -if [ -s version ]; then - read -r version < version -else - version=0 -fi - +version="$(git log --oneline | wc -l)" let version++ || true # -e mode doesn't like this normally -echo $version > version git commit -qm "update $version" . >/dev/null