Skip to content
Snippets Groups Projects
Commit ce668650 authored by j's avatar j
Browse files

Noob error, forgot to login before putting.

parent 1a99745c
Branches
Tags
1 merge request!1521Reorganised files.
...@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do ...@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do
cd $LocalDir/ && AbrevHash=`git log --reverse -n1 --abbrev-commit |grep -m1 commit | sed 's/commit //'` cd $LocalDir/ && AbrevHash=`git log --reverse -n1 --abbrev-commit |grep -m1 commit | sed 's/commit //'`
if [ $COUNTER -eq 0 ]; then ./compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-put bin/*.html $RemoteDir if [ $COUNTER -eq 0 ]; then ./compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-put bin/*.html $RemoteDir
else if [ "$(git pull)" == "Already up to date." ]; then exit else if [ "$(git pull)" == "Already up to date." ]; then exit
else rm bin/*.html ; .compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-put bin/*.html $RemoteDir else rm bin/*.html ; .compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-login $U $P && mega-put bin/*.html $RemoteDir
fi fi
fi fi
let COUNTER=COUNTER+1 && mega-logout > /dev/null && sleep 300s let COUNTER=COUNTER+1 && mega-logout > /dev/null && sleep 300s
......
...@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do ...@@ -6,7 +6,7 @@ while [ $COUNTER -ge 0 ]; do
cd $LocalDir/ && AbrevHash=`git log -n1 --reverse --abbrev-commit |grep -m1 commit | sed 's/commit //'` cd $LocalDir/ && AbrevHash=`git log -n1 --reverse --abbrev-commit |grep -m1 commit | sed 's/commit //'`
if [ $COUNTER -eq 0 ]; then echo "First run. Compliling, formatting and placing .html." && ./compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-put bin/*.html $RemoteDir && echo "Inital compiled .html placed." if [ $COUNTER -eq 0 ]; then echo "First run. Compliling, formatting and placing .html." && ./compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-put bin/*.html $RemoteDir && echo "Inital compiled .html placed."
else if [ "$(git pull)" == "Already up to date." ]; then echo "No updated files." else if [ "$(git pull)" == "Already up to date." ]; then echo "No updated files."
else echo "Compliling, formatting and placing updated .html." ; rm bin/*.html ; ./compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-put bin/*.html $RemoteDir ; echo "Updated .html placed." else echo "Compliling, formatting and placing updated .html." ; rm bin/*.html ; ./compile > /dev/null && mv bin/FC_pregmod.html "bin/FC-pregmod-$(git log -1 --format='%cd' --date='format:%F-%H-%M')-$AbrevHash.html" && mega-login $U $P && mega-put bin/*.html $RemoteDir ; echo "Updated .html placed."
fi fi
fi fi
let COUNTER=COUNTER+1 && mega-logout > /dev/null && sleep 300s let COUNTER=COUNTER+1 && mega-logout > /dev/null && sleep 300s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment