remove dependency on my bashrc
[iankelling.org] / gitweb-descriptions
index 34c797fc8ff220be137cebe7511e756c33dc59d4..cd6014b0e119bbb223506c997038d376af356393 100755 (executable)
@@ -1,4 +1,18 @@
 #!/bin/bash -l
+# Copyright (C) 2016 Ian Kelling
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # my projects all have README or --help with a short single line
 # description which I parse and put into the gitweb description.
@@ -59,7 +73,7 @@ gitweb-descriptions() {
                     _git_desc_readme
                 fi
             else
-                $f --help | sed -n '2p' > .git/description
+                ./$f --help | sed -n '2p' > .git/description
             fi
         else
             _git_desc_readme