The check for Rproj files now fixed and works properly.

An answer on stackoverflow provided by the basis for the code.
master
Taha Ahmed 13 years ago
parent 4b224b0c01
commit 8082ea3039

@ -178,11 +178,12 @@ else
rm * -R # note: hidden files and subdir unaffected rm * -R # note: hidden files and subdir unaffected
# Return the stuff we want to keep after wipe-dir # Return the stuff we want to keep after wipe-dir
cp /home/taha/chepec/tmp/$tmpdirname/*.Rnw . cp /home/taha/chepec/tmp/$tmpdirname/*.Rnw .
cp /home/taha/chepec/tmp/$tmpdirname/vc .e cp /home/taha/chepec/tmp/$tmpdirname/vc .
cp /home/taha/chepec/tmp/$tmpdirname/vc.tex . cp /home/taha/chepec/tmp/$tmpdirname/vc.tex .
cp /home/taha/chepec/tmp/$tmpdirname/vc-git.awk . cp /home/taha/chepec/tmp/$tmpdirname/vc-git.awk .
# Ditto for the stuff that may not always exist... # Return stuff that may not always exist (check first...)
if [ -e *.Rproj ]; then Rprojfiles=`ls -1 /home/taha/chepec/tmp/$tmpdirname/*.Rproj 2>/dev/null | wc -l`
if [ $Rprojfiles != 0 ]; then
cp /home/taha/chepec/tmp/$tmpdirname/*.Rproj . cp /home/taha/chepec/tmp/$tmpdirname/*.Rproj .
fi fi
fi fi

Loading…
Cancel
Save