Verified Commit 81c7142b authored by RAJsat bot's avatar RAJsat bot Committed by Isabella Skořepová
Browse files

Přidány synchronizační soubory

parent ba48bdcb
megasync:
script:
- HW/download_from_mega.sh $EMAIL $PASSWORD
- touch sshkey
- chmod 600 sshkey
- echo "$KEY" > sshkey
- GIT_SSH_COMMAND="ssh -i sshkey" git push git@git.ok1kvk.cz:RybkaLabs/RAJsat4.git HEAD:master
- rm sshkey
only:
- master
when: manual
......@@ -4,16 +4,16 @@ cd "$( dirname "${BASH_SOURCE[0]}" )"
EMAIL=$1
PASSWORD=$2
P=/Root/_Projekty/CanSAT_2017/RAJsat4/HW
P=/Root/_Projekty/CanSAT_2017/RAJsat4/HW/
MEGAGET="megaget -u $EMAIL -p $PASSWORD --reload"
function dwn() {
rm -f $1.brd $1.sch
$MEGAGET $1$2.brd
$MEGAGET $P$1$2.brd
mv $1$2.brd $1.brd
$MEGAGET $1$2.sch
$MEGAGET $P$1$2.sch
mv $1$2.sch $1.sch
if [ ! -f $1.brd ] ; then git checkout $1.brd ; fi
......@@ -30,6 +30,6 @@ dwn SolarPanel_A _v4.0
dwn SolarPanel_B _v4.0
git add .
git commit -am "Synchronizovány soubory z MEGY"
git commit -am "Synchronizovány soubory z MEGY" --author "RAJsat bot <bot@rajsat.cz>"
cd ..
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment