Mercurial > ec-dotfiles
comparison moefetch.sh @ 155:78ef726d3845
fix: whoops. Forgot to move back to workdir after
| author | edhoprima |
|---|---|
| date | Sat, 25 Apr 2009 16:11:06 +0000 |
| parents | 8bca9dc8c20d |
| children | d3b002fd944e |
comparison
equal
deleted
inserted
replaced
| 154:8bca9dc8c20d | 155:78ef726d3845 |
|---|---|
| 93 elif [ $totalerr -gt 0 ]; then | 93 elif [ $totalerr -gt 0 ]; then |
| 94 cat "../temp/$outdir-error" | xargs rm | 94 cat "../temp/$outdir-error" | xargs rm |
| 95 echo "$totalerr file(s) removed" | 95 echo "$totalerr file(s) removed" |
| 96 fi | 96 fi |
| 97 echo "`echo \`ls | wc -l\`` file(s) available locally" | 97 echo "`echo \`ls | wc -l\`` file(s) available locally" |
| 98 cd .. | 98 cd ../temp |
| 99 else | 99 else |
| 100 if [ $ISQUICK -eq 1 ]; then | 100 if [ $ISQUICK -eq 1 ]; then |
| 101 echo "quick mode selected. Skipping check" | 101 echo "quick mode selected. Skipping check" |
| 102 else | 102 else |
| 103 echo "Empty local repository" | 103 echo "Empty local repository" |
| 106 fi | 106 fi |
| 107 } | 107 } |
| 108 | 108 |
| 109 FETCH() | 109 FETCH() |
| 110 { | 110 { |
| 111 if [ `wc -l < "$outdir-newlist"` -eq 0 ] | 111 if [ `echo \`wc -l < "$outdir-newlist"\`` -eq 0 ]; then |
| 112 then | |
| 113 echo "No new file" | 112 echo "No new file" |
| 114 else | 113 else |
| 115 echo "Starting wget" | 114 echo "Starting wget" |
| 116 cd "../$outdir" | 115 cd "../$outdir" |
| 117 wget -bi -e continue=on "../temp/$outdir-newlist" -o "../temp/$outdir.log" | 116 wget -bi -e continue=on "../temp/$outdir-newlist" -o "../temp/$outdir.log" |
