Skip to content

Commit

Permalink
Remove .gt dir if already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Nov 18, 2014
1 parent fd8c29b commit 5b9d38f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/install
Expand Up @@ -13,7 +13,10 @@ $gtDir = "$HOME/.gt";
$binDir = "$gtDir/PHP.Gt/bin";
$gtBinDir = "$gtDir/bin";

if(!is_dir($gtDir)) {
if(is_dir($gtDir)) {
exec("rm -rf $gtDir");
}
else {
mkdir($gtDir);
}
chdir($gtDir);
Expand Down

0 comments on commit 5b9d38f

Please sign in to comment.