Private GIT

Skip to content
Snippets Groups Projects
Commit 9e2e89b7 authored by DirtyCajunRice's avatar DirtyCajunRice Committed by miigotu
Browse files

fixed yesno and silenced git clone (#1571)

parent 4088632a
No related branches found
No related tags found
No related merge requests found
...@@ -64,9 +64,9 @@ if [[ ! -d /opt/sickrage ]]; then ...@@ -64,9 +64,9 @@ if [[ ! -d /opt/sickrage ]]; then
else else
whiptail --title 'Overwrite?' --yesno "/opt/sickrage already exists, do you want to overwrite it?" 8 40 whiptail --title 'Overwrite?' --yesno "/opt/sickrage already exists, do you want to overwrite it?" 8 40
choice=$? choice=$?
if [[ $choice == 1 ]]; then if [[ $choice == 0 ]]; then
rm -rf /opt/sickrage && mkdir /opt/sickrage && chown sickrage:sickrage /opt/sickrage rm -rf /opt/sickrage && mkdir /opt/sickrage && chown sickrage:sickrage /opt/sickrage
su -c "git clone https://github.com/SickRage/SickRage.git /opt/sickrage" -s /bin/bash sickrage su -c "git clone -q https://github.com/SickRage/SickRage.git /opt/sickrage" -s /bin/bash sickrage
else else
echo echo
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment