commit 0409c8c7d0be72d20d8c396c64e9fea73788ca0b
Author: spesk1 <spesk@pm.me>
Date: Wed May 22 21:41:45 2019 -0400
Removed init of .sg in git dir. Creates clutter and belons in HOME
diff --git a/sg b/sg
index 8dc7303..8d1b615 100755
--- a/sg
+++ b/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");