diff --git a/chertex.sh b/chertex.sh index c6dc374..b39ca54 100755 --- a/chertex.sh +++ b/chertex.sh @@ -178,10 +178,13 @@ else rm * -R # note: hidden files and subdir unaffected # Return the stuff we want to keep after wipe-dir cp /home/taha/chepec/tmp/$tmpdirname/*.Rnw . - cp /home/taha/chepec/tmp/$tmpdirname/*.Rproj . - cp /home/taha/chepec/tmp/$tmpdirname/vc . + cp /home/taha/chepec/tmp/$tmpdirname/vc .e cp /home/taha/chepec/tmp/$tmpdirname/vc.tex . cp /home/taha/chepec/tmp/$tmpdirname/vc-git.awk . + # Ditto for the stuff that may not always exist... + if [ -e *.Rproj ]; then + cp /home/taha/chepec/tmp/$tmpdirname/*.Rproj . + fi fi echo "Terminating..."