Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
raspberry-pi-setup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PSE - AI at the Edge
raspberry-pi-setup
Commits
190946c1
Commit
190946c1
authored
3 years ago
by
Daniel Müller
Browse files
Options
Downloads
Patches
Plain Diff
Update clone.sh
parent
3a8953e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/git-clone/files/clone.sh
+4
-8
4 additions, 8 deletions
roles/git-clone/files/clone.sh
with
4 additions
and
8 deletions
roles/git-clone/files/clone.sh
+
4
−
8
View file @
190946c1
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment