Skip to content

Commit cbc7cff

Browse files
author
arch
committed
improve linux install
1 parent 6bb1dbe commit cbc7cff

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

contrib/OpenFunscripter/openfunscripter_setup_linux.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Requirements: On Debian based systems e.g. Ubuntu you have to install Anaconda or Miniconda
44
# befor running this installer!
55

6+
arg1="$1"
7+
68
if [ "$EUID" -eq 0 ]; then
79
echo "ERROR: You can not run this script with sudo!!"
810
exit 1
@@ -69,8 +71,12 @@ git reset --hard HEAD
6971
git clean -fd
7072
git pull --all
7173

72-
echo "Checkout latest MTFG release"
73-
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
74+
if [ "$arg1" != "--latest" ]; then
75+
echo "Checkout latest MTFG release"
76+
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
77+
else
78+
echo "Use latest git commit (only for developers!)"
79+
fi
7480

7581
if command -v apt; then
7682
# debian based distro:

0 commit comments

Comments
 (0)