Update unreal script to only pull the repo if it doesn't exist on the system
This commit is contained in:
parent
8391e1df79
commit
cc96645899
|
@ -11,8 +11,10 @@ read -p "Enter your github token: " token
|
||||||
while true; do
|
while true; do
|
||||||
read -p "What release of Unreal Would you like? (Please check the Unreal repository for release numbers): " answer
|
read -p "What release of Unreal Would you like? (Please check the Unreal repository for release numbers): " answer
|
||||||
cd $software_PATH
|
cd $software_PATH
|
||||||
|
if [[ ! -d $software_PATH/UnrealEngine ]]; then
|
||||||
git clone https://github.com/EpicGames/UnrealEngine "UnrealEngine$answer"
|
git clone https://github.com/EpicGames/UnrealEngine "UnrealEngine$answer"
|
||||||
cd "UnrealEngine$answer"
|
fi
|
||||||
|
cd "$software_PATH/UnrealEngine$answer"
|
||||||
git checkout "$answer-release"
|
git checkout "$answer-release"
|
||||||
bash Setup.sh
|
bash Setup.sh
|
||||||
bash GenerateProjectFiles.sh
|
bash GenerateProjectFiles.sh
|
||||||
|
@ -36,7 +38,9 @@ Categories=Development;Animation;
|
||||||
if [[ ! -d /home/$(whoami)/.local/share/applications ]]; then
|
if [[ ! -d /home/$(whoami)/.local/share/applications ]]; then
|
||||||
mkdir /home/$(whoami)/.local/share/applications
|
mkdir /home/$(whoami)/.local/share/applications
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s "$software_PATH/UnrealEngine$answer/UnrealEngine$answer.desktop" ".local/share/applications/"
|
ln -s "$software_PATH/UnrealEngine$answer/UnrealEngine$answer.desktop" ".local/share/applications/"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Do you want to install another version? (y/n) " response
|
read -p "Do you want to install another version? (y/n) " response
|
||||||
if [[ "${response,,}" == "n" ]]; then
|
if [[ "${response,,}" == "n" ]]; then
|
||||||
|
@ -47,9 +51,11 @@ Categories=Development;Animation;
|
||||||
"Invalid Response (y/n)"
|
"Invalid Response (y/n)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "${response,,}" == "y" ]]; then
|
if [[ "${response,,}" == "y" ]]; then
|
||||||
echo -n ""
|
echo -n ""
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue