From 3b3f95cfe38c83499a183518038c4db8119a3acf Mon Sep 17 00:00:00 2001 From: nemsia Date: Sat, 29 Apr 2017 23:58:25 +0200 Subject: [PATCH] [enh] Switch tagged release on install Work with 1.3.2 --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 5d1e75e..1b82828 100644 --- a/scripts/install +++ b/scripts/install @@ -89,6 +89,10 @@ git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/rub git clone https://github.com/tootsuite/mastodon.git $final_path/live CLONECOMMANDS +# Switch to tagged release +pushd $final_path/live +sudo git checkout $(git tag | tail -n 1) + # Be king rewind (/var/cache/yunohost/from_file/scripts) popd