Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hust-x86-simulator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yizhiran
hust-x86-simulator
Commits
a8118623
There was an error fetching the commit references. Please try again later.
Commit
a8118623
authored
7 years ago
by
Zihao Yu
Browse files
Options
Downloads
Patches
Plain Diff
init.sh: add retry
parent
7d0c8943
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
init.sh
+5
-3
5 additions, 3 deletions
init.sh
with
5 additions
and
3 deletions
init.sh
+
5
−
3
View file @
a8118623
...
@@ -3,16 +3,18 @@
...
@@ -3,16 +3,18 @@
log
=
""
log
=
""
function
init
()
{
function
init
()
{
if
test
-d
$1
;
then
if
[
-d
$1
]
;
then
echo
"
$1
is already initialized, exiting..."
echo
"
$1
is already initialized, exiting..."
return
return
fi
fi
git clone
-b
ics2017 https://github.com/NJU-ProjectN/
$1
.git
while
[
!
-d
$1
]
;
do
git clone
-b
ics2017 https://github.com/NJU-ProjectN/
$1
.git
done
log
=
"
$log$1
`
cd
$1
&&
git log
--oneline
--no-abbrev-commit
-n1
`
"
$'
\n
'
log
=
"
$log$1
`
cd
$1
&&
git log
--oneline
--no-abbrev-commit
-n1
`
"
$'
\n
'
rm
-rf
$1
/.git
rm
-rf
$1
/.git
if
test
$2
;
then
if
[
$2
]
;
then
sed
-i
-e
"/^export
$2
=.*/d"
~/.bashrc
sed
-i
-e
"/^export
$2
=.*/d"
~/.bashrc
echo
"export
$2
=
`
readlink
-e
$1
`
"
>>
~/.bashrc
echo
"export
$2
=
`
readlink
-e
$1
`
"
>>
~/.bashrc
fi
fi
...
...
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