Skip to content

Commit

Permalink
Fix a few minor things
Browse files Browse the repository at this point in the history
  • Loading branch information
pabera committed Dec 8, 2023
1 parent 46b360d commit 042ed9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions installation/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ GIT_BRANCH=${GIT_BRANCH:-"future3/main"}
# Constants
GIT_REPO_NAME="RPi-Jukebox-RFID"
GIT_URL="https://github.com/${GIT_USER}/${GIT_REPO_NAME}"
echo GIT_BRANCH $GIT_BRANCH
echo GIT_URL $GIT_URL

CURRENT_USER="${SUDO_USER:-$(whoami)}"
CURRENT_USER_GROUP=$(id -gn "$CURRENT_USER")
HOME_PATH=$(getent passwd "$CURRENT_USER" | cut -d: -f6)
Expand Down Expand Up @@ -91,9 +94,8 @@ _check_os_type() {
}

_download_jukebox_source() {
log "\n\n"
log "#########################################################"
print_c "Downloading Phoniebox software from Github ..." 1>&3
print_c "Downloading Phoniebox software from Github ..."
print_lc "Download Source: ${GIT_URL}/${GIT_BRANCH}"

cd "${HOME_PATH}" || exit_on_error "ERROR: Changing to home dir failed."
Expand Down Expand Up @@ -133,8 +135,6 @@ _setup_logging
_check_os_type

### RUN INSTALLATION
log GIT_BRANCH $GIT_BRANCH
log GIT_URL $GIT_URL
log "Current User: $CURRENT_USER"
log "User home dir: $HOME_PATH"

Expand Down

0 comments on commit 042ed9a

Please sign in to comment.