From 4bf0764a1c3440d79317f07d518de96d0a5903dd Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 4 Mar 2019 18:56:30 -0600 Subject: [PATCH] Updated Updating (markdown) --- Updating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Updating.md b/Updating.md index cd60d55..39f511f 100644 --- a/Updating.md +++ b/Updating.md @@ -6,7 +6,7 @@ $ sudo -i -u invidious $ cd invidious $ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD) $ git pull -$ latestVersion=$(git describe --tags `git rev-list --tags --max-count=1`) +$ latestVersion=$(git describe --tags --abbrev=0) $ git checkout $latestVersion $ for i in `git rev-list --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done $ shards update && shards install