Browse Source

Removed init of .sg in git dir. Creates clutter and belons in HOME

spesk1 5 years ago
parent
commit
0409c8c7d0
1 changed files with 4 additions and 5 deletions
  1. 4 5
      sg

+ 4 - 5
sg

@@ -19,11 +19,10 @@ if ( ! -d ".git" ) {
 sub initSG($) {
 
 	my $sgDir = shift;
-	my $pwdCmd = findBin("pwd");
-	my $pwd = shellex($pwdCmd);
-	chomp $pwd;
-	my $path = $pwd . "/" . $sgDir;
-	my $logFile = $pwd . "/" . $sgDir . "/" . "sgLog.txt";
+	my $homeDir = shellex("echo \$HOME");
+	chomp $homeDir;
+	my $path = $homeDir . "/" . $sgDir;
+	my $logFile = $homeDir . "/" . $sgDir . "/" . "sgLog.txt";
 	if ( ! -d $path ) {
 		print "Creating $path\n";
 		shellex("mkdir $path");