Skip to content

Commit

Permalink
Make default to clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
muxspace committed Aug 16, 2016
1 parent f61eceb commit fa0199c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpackage
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ function install_source() {
$unzip $branch.zip
cd ${package}-${branch}
crant -Ci
[ -n "$cleanup" ] && rm $branch.zip
[ -n "$cleanup" ] && rm -rf ${package}-${branch};;
[ -z "$cleanup" ] && rm $branch.zip
[ -z "$cleanup" ] && rm -rf ${package}-${branch};;
git)
git clone $url $package
cd $package
crant -Ci
[ -n "$cleanup" ] && rm -rf $package;;
[ -z "$cleanup" ] && rm -rf $package;;
*) echo "File of type $suffix is not supported. Sorry.";;
esac
}
Expand Down Expand Up @@ -90,7 +90,7 @@ install_opts=NULL
while getopts "cr:tdR:p:" opt
do
case $opt in
c) cleanup=yes;;
C) cleanup=no;;
r) repo=$OPTARG;;
t) install_opts='--install-tests';;
d) dependencies=TRUE;;
Expand Down

0 comments on commit fa0199c

Please sign in to comment.