Skip to content
Snippets Groups Projects
Verified Commit 3949ce4c authored by Recolic Keghart's avatar Recolic Keghart
Browse files

> Manual commit: Pull commits from public_template

U201614531
recolic
Linux RECOLICPC 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64 GNU/Linux
 21:08:24 up 4 days,  2:16,  1 user,  load average: 0.88, 0.51, 0.46
baa53b4eeeeccfb53cf3444354e1819f195af786
parent c29f7514
No related branches found
No related tags found
No related merge requests found
......@@ -11,3 +11,4 @@ build
.idea
.vscode
nemu/*.txt
......@@ -10,10 +10,15 @@ 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"
sleep 2
[ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment