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
recolic-hust
hust-x86-simulator
Commits
cd1244cb
There was an error fetching the commit references. Please try again later.
Verified
Commit
cd1244cb
authored
5 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
fix setup.sh pubkey filename problem.
parent
745b685e
No related branches found
No related tags found
1 merge request
!4
HUST codebase improvement suggestions
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+13
-0
13 additions, 0 deletions
.gitignore
setup.sh
+8
-4
8 additions, 4 deletions
setup.sh
with
21 additions
and
4 deletions
.gitignore
+
13
−
0
View file @
cd1244cb
*.yy.cc
*.tab.cc
*.tab.h
*.d
*.o
*.out
*.output
build
.idea
.vscode
This diff is collapsed.
Click to expand it.
setup.sh
+
8
−
4
View file @
cd1244cb
...
...
@@ -10,10 +10,14 @@ function env_set() {
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
echo
"uploading public key..."
echo
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/RecolicPC.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/RecolicPC.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
-vv
sleep
10
[
-z
"
$pubkey
"
]
&&
pubkey
=
"
${
HOME
}
/.ssh/id_rsa.pub"
[
!
-f
"
$pubkey
"
]
&&
echo
"Public key file
$pubkey
doesnt exist."
&&
exit
2
echo
"uploading public key
$pubkey
..."
echo
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
$pubkey
"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
$pubkey
"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
-vv
sleep
5
echo
"setup git-remote..."
git remote add hustpa
"pa@
$hust_submit_server_host
:
${
STUID
}
-git"
git branch pa0
...
...
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