Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
install-raspbian: allow installation of latest stable release via git
Browse files Browse the repository at this point in the history
Change-Id: I87d12c9c38528a13ec97db0200461c89523a3f63
  • Loading branch information
andi34 committed Jan 16, 2022
1 parent a2817a9 commit 78d7024
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions install-raspbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,24 +482,37 @@ print_logo

info "### The Photobooth installer for your Raspberry Pi."

echo -e "\033[0;33m### Please select a version to install:"
echo -e " 1 Install last development version (git)"
echo -e " 2 Install latest stable Release (package)"
echo -e "\033[0;33m### Choose your Photobooth version."
echo -e " Note: Installation via git will take more time"
echo -e " and is recommended for brave users."
echo -e " "
echo -e " Versions available: "
echo -e " 1 Install latest stable Release (git)"
echo -e " 2 Install latest development version (git)"
echo -e " 3 Install latest stable Release (package)"
ask_yes_no "Please enter your choice" "1"
echo -e "\033[0m"
if [[ $REPLY =~ ^[1]$ ]]; then
info "### We are installing last development version via git"
info "### We are installing last stable Release via git."
BRANCH="stable3"
GIT_INSTALL=true
COMMON_PACKAGES+=(
'git'
'yarn'
)
elif [[ $REPLY =~ ^[2]$ ]]; then
info "### We are installing last development version via git."
BRANCH="dev"
GIT_INSTALL=true
COMMON_PACKAGES+=(
'git'
'yarn'
)
else
if [[ ! $REPLY =~ ^[2]$ ]]; then
if [[ ! $REPLY =~ ^[3]$ ]]; then
info "### Invalid choice!"
fi
info "### We are installing latest stable Release from package"
info "### We are installing latest stable Release from package."
BRANCH="stable3"
GIT_INSTALL=false
NEEDS_NODEJS_CHECK=false
Expand Down

0 comments on commit 78d7024

Please sign in to comment.