1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-11 16:44:09 +02:00

Fixed Dependency Query Check

This commit is contained in:
Ryan Greenup
2020-07-13 06:09:57 +10:00
parent 3feee6d787
commit 985b757f30

View File

@@ -4,6 +4,7 @@ main () {
printThis printThis
check_for_dependencies check_for_dependencies
download_the_repo download_the_repo
Install_tools
} }
printThis () { printThis () {
@@ -64,11 +65,12 @@ download_the_repo () {
if [[ -d ".git" ]]; then if [[ -d ".git" ]]; then
echo "Detected a Git Repo, Press y to add a submodule or any key to exit" echo "Detected a Git Repo, Press y to add a submodule or any key to exit"
read -d '' -s -n1 CheckDepQ
if [ "$CheckDepQ" != "y" ]; then if [ "$CheckDepQ" != "y" ]; then
exit 1 echo "You pressed any key"
fi fi
git submodule add https://github.com/RyanGreenup/cadmus git submodule add https://github.com/RyanGreenup/cadmus && echo "Submodule succesfully added"
elif [[ -f ".git" ]]; then elif [[ -f ".git" ]]; then
echo "You have a file called .git In there, delete that first."; echo "You have a file called .git In there, delete that first.";
@@ -76,8 +78,13 @@ download_the_repo () {
git clone https://github.com/RyanGreenup/cadmus git clone https://github.com/RyanGreenup/cadmus
fi fi
echo "Repository is downloaded"
} }
Install_tools () {
echo "Installing with Stow from $(pwd) to $HOME"
}
# Declare an array of string with type # Declare an array of string with type
declare -a StringArray=("R" declare -a StringArray=("R"