old
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 16 Feb 2020 14:06:51 +0000 (15:06 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 16 Feb 2020 14:06:51 +0000 (15:06 +0100)
bak-git-server.pl
klin.sh

index 5ba7e17..7a952b5 100755 (executable)
@@ -76,8 +76,10 @@ while(<$ssh_fd>) {
                $host = $1;
        } elsif ( /^\s+(\S+)\s+(.+)/ ) {
                $ssh_tunnel->{$host}++ if lc($1) eq 'remoteforward' && $2 =~ m/9001/;
+       } elsif ( /^\s+$/ ) {
+               # nop
        } else {
-               die "can't parse $_";
+               die "can't parse [$_]";
        }
 }
 
diff --git a/klin.sh b/klin.sh
index 1c1be19..9b059d8 100755 (executable)
--- a/klin.sh
+++ b/klin.sh
@@ -1,6 +1,8 @@
 #!/bin/sh -x
 
-if [ -z "$1" ] ; then
+cd /home/dpavlin/klin/bak-git
+
+if [ ! -z "$1" ] ; then
 
 /usr/sbin/lighttpd -f gitweb/httpd.conf