Create publish_eyetune.sh

This commit is contained in:
mancoast
2019-10-31 14:22:38 -04:00
parent 17b096c95f
commit cdb7d10c16

41
src/publish_eyetune.sh Normal file
View File

@ -0,0 +1,41 @@
#!/bin/bash
# Options
repo=projectm
SRC=/d/GIT/$repo
DEST=$SRC/projectm
###
mkdir -p $DEST
# Define a timestamp function
timestamp() {
date +"%Y%m%d%H%M%S"
}
# Move 1 file
move1() {
cd $SRC/to_sync && find . -type f |head -1|xargs mv -t $DEST
}
# Upload 10 at a time
upload1() {
cd $SRC && git pull
cd $SRC && git status
cd $SRC && git add .
cd $SRC && git commit -m"preset_mega_pack-cognitive_api-sync-$(timestamp)"
cd $SRC && git push
cd $SRC && git status
sleep 55s # Waits 55 seconds.
}
# iterates
i="0"
while [ $i -lt 1000 ]
do
echo "iteration number $i"
i=$[$i+1]
# $(upload1)
done