Skip to content
Snippets Groups Projects
Commit 22ebb3e0 authored by Marcus Greiff's avatar Marcus Greiff
Browse files

Clean up util files, file transfer and initialization now functional

parent 5a52b15a
No related branches found
No related tags found
No related merge requests found
...@@ -47,12 +47,21 @@ if [ "{flag}"=true ]; then ...@@ -47,12 +47,21 @@ if [ "{flag}"=true ]; then
} || { # catch } || { # catch
# save log for exception # save log for exception
flag=false flag=false
printf "${RED}Could not send folder /${project} to the BBB, aborting!${NC}\n" printf "${RED}Could not send project /${project} to the BBB, aborting!${NC}\n"
} }
done done
fi fi
printf "${BLUE}Connecting to the BBB${NC}\n" printf "${BLUE}Deleting temporary files...${NC}\n"
for project in "${projects[@]}"; do
{
rm -rf ${project}
} || {
printf "${RED}Could not delete project /${project}, aborting!${NC}\n"
}
done
printf "${BLUE}Connecting to the BBB...${NC}\n"
{ {
ssh -t debian@192.168.7.2 "./LabConnection.jl/util/startup.sh; bash -l" ssh -t debian@192.168.7.2 "./LabConnection.jl/util/startup.sh; bash -l"
} || { } || {
......
...@@ -47,12 +47,21 @@ if [ "{flag}"=true ]; then ...@@ -47,12 +47,21 @@ if [ "{flag}"=true ]; then
} || { # catch } || { # catch
# save log for exception # save log for exception
flag=false flag=false
printf "${RED}Could not send folder /${project} to the BBB, aborting!${NC}\n" printf "${RED}Could not send project /${project} to the BBB, aborting!${NC}\n"
} }
done done
fi fi
printf "${BLUE}Connecting to the BBB${NC}\n" printf "${BLUE}Deleting temporary files...${NC}\n"
for project in "${projects[@]}"; do
{
rm -rf ${project}
} || {
printf "${RED}Could not delete project /${project}, aborting!${NC}\n"
}
done
printf "${BLUE}Connecting to the BBB...${NC}\n"
{ {
ssh -t debian@192.168.7.2 "./LabConnection.jl/util/startup.sh; bash -l" ssh -t debian@192.168.7.2 "./LabConnection.jl/util/startup.sh; bash -l"
} || { } || {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment