Skip to content
Snippets Groups Projects
Commit 190946c1 authored by Daniel Müller's avatar Daniel Müller :speech_balloon:
Browse files

Update clone.sh

parent 3a8953e9
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
GIT_URL="https://code.fbi.h-da.de/pse-ai-at-the-edge/ai-at-the-edge.git" GIT_URL="https://code.fbi.h-da.de/pse-ai-at-the-edge/ai-at-the-edge.git"
DIRECTORY_NAME="ai-at-the-edge" REPO_DIR_NAME="ai-at-the-edge"
CLONE_DIRECTORY="$HOME/notebooks" CLONE_DIRECTORY="$HOME/notebooks"
mkdir -p $CLONE_DIRECTORY mkdir -p $CLONE_DIRECTORY
cd $CLONE_DIRECTORY if [ ! -d "$CLONE_DIRECTORY/$REPO_DIR_NAME" ]; then
if test -d "$DIRECTORY_NAME"; then
# directory already exists.
exit
else
# directory does not exist. Clone the repo # directory does not exist. Clone the repo
git clone $GIT_URL $DIRECTORY_NAME git clone $GIT_URL "$CLONE_DIRECTORY/$REPO_DIR_NAME"
fi fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment