Now checks if Rproj exists before attempting to copy it.

Embarrasing oversight. Rproj file may not always exist (only created if an Rstudio project has been created in that directory).
master
Taha Ahmed 12 years ago
parent 8f8b07a485
commit 4b224b0c01

@ -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..."

Loading…
Cancel
Save