Skip to content
Snippets Groups Projects
Commit 0c5bf1d3 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'TODO-tweaking' into 'pregmod-master'

Todo tweaking [Ready for merge]

Closes #1120

See merge request !5409
parents f4f991be 4e9320d0
No related branches found
No related tags found
1 merge request!5409Todo tweaking [Ready for merge]
#!/bin/ksh #!/bin/ksh
mega-login $1 $2 #U=$1 P=$2 rDir=$3 lDir=$4 repo=$5 Reqs:MEGAcmd,git mega-login $1 $2 #U=$1 P=$2 rDir=$3 lDir=$4 Reqs:MEGAcmd,git
if [ -z "$5" ];then 5='https://gitgud.io/pregmodfan/fc-pregmod.git';fi
while true;do gen=0;cd $4; while true;do gen=0;cd $4;
if [[ `echo $?` -gt 0 ]];then mkdir -p $4&&git clone -q --depth 1 $5 $4&&cd $4 if [[ `echo $?` -gt 0 ]];then mkdir -p $4&&git clone -q --depth 1 https://gitgud.io/pregmodfan/fc-pregmod.git $4&&cd $4
if [[ ! `mega-ls $3|cut -c21-24|paste -sd,` =~ `git log|head -1|cut -c8-11` ]];then gen=1;fi #stackoverflow.com/a/15394738 if [[ ! `mega-ls $3|cut -c21-24|paste -sd,` =~ `git log|head -1|cut -c8-11` ]];then gen=1;fi #stackoverflow.com/a/15394738
fi fi
git fetch -q && if [ `git rev-list ...origin|wc -l` -gt 0 ];then git pull -q&&gen=1;fi #stackoverflow.com/a/17192101 git fetch -q && if [ `git rev-list ...origin|wc -l` -gt 0 ];then git pull -q&&gen=1;fi #stackoverflow.com/a/17192101
......
This diff is collapsed.
This diff is collapsed.
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