Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Commit

Permalink
added if to third-party/retropie function
Browse files Browse the repository at this point in the history
  • Loading branch information
snwh committed Nov 26, 2016
1 parent c46b8b7 commit eeb0fd8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions AUTHORS
@@ -0,0 +1,5 @@
This project developed & maintained by:

Sam Hewitt <sam@snwh.org>

See commit history for additional contributors.
15 changes: 9 additions & 6 deletions functions/third-party/retropie
Expand Up @@ -12,13 +12,16 @@ function retropie {
show_warning 'Requires root privileges'
sudo apt-get -y install ${DEPS[*]}
show_success 'Done.'
# Git Clone
cd
show_info "Cloning RetroPie repository..."
git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
show_success 'Done.'
# Check if RetroPie repository is already cloned
if [ ! -d "$HOME/RetroPie-Setup" ]; then
# Git Clone
cd $HOME
show_info "Cloning RetroPie repository..."
git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
show_success 'Done.'
fi
# Enter repo directory
cd RetroPie-Setup
cd $HOME/RetroPie-Setup
# Make setup script executable
chmod +x retropie_setup.sh
# Run Setup
Expand Down

0 comments on commit eeb0fd8

Please sign in to comment.