Improvement of the installation script, to allow easier restarts when the install fails
This commit is contained in:
parent
f4d12ec9eb
commit
dacae41c9a
|
|
@ -142,7 +142,6 @@ print "Installing Open Rowing Monitor, branch $BRANCH..."
|
|||
|
||||
if ! [[ -d "${INSTALL_DIR}" ]]; then
|
||||
sudo mkdir -p $INSTALL_DIR
|
||||
fi
|
||||
|
||||
cd $INSTALL_DIR
|
||||
|
||||
|
|
@ -157,6 +156,9 @@ sudo git config core.autocrlf false
|
|||
sudo git fetch --force origin
|
||||
sudo git fetch --force --tags origin
|
||||
sudo git reset --hard origin/$BRANCH
|
||||
fi
|
||||
|
||||
cd $INSTALL_DIR
|
||||
|
||||
# add bin directory to the system path
|
||||
echo "export PATH=\"\$PATH:$INSTALL_DIR/bin\"" >> ~/.bashrc
|
||||
|
|
|
|||
Loading…
Reference in New Issue