From 0d85e8b9e0198251e34a8804e31f1997f6e9d0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Riette?= Date: Tue, 8 Oct 2024 16:50:35 +0200 Subject: [PATCH] BF: specify pyft version when installed from scratch --- tools/INSTALL.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/INSTALL.sh b/tools/INSTALL.sh index 6e68ee4a..b927efbc 100755 --- a/tools/INSTALL.sh +++ b/tools/INSTALL.sh @@ -93,6 +93,7 @@ if [ $pyft -eq 1 ]; then else git clone https://github.com/UMR-CNRM/pyft.git fi + cd pyft else #Update cd pyft @@ -103,11 +104,11 @@ if [ $pyft -eq 1 ]; then git fetch https://github.com/UMR-CNRM/pyft.git fi fi - if [ $(git rev-parse HEAD^{commit}) != $(git rev-parse ${pyft_version}^{commit}) ]; then - git checkout ${pyft_version} - fi - cd .. fi + if [ $(git rev-parse HEAD^{commit}) != $(git rev-parse ${pyft_version}^{commit}) ]; then + git checkout ${pyft_version} + fi + cd .. #Install/update if [ $ssh -eq 1 ]; then ./pyft/bin/INSTALL.sh --ssh