Commit 1fed4792 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

'real_path' fixed in both git-hooks & auto-build

'real_path' functions where not returning last part of path.
parent 4d7ba8e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@

set -e

real_path(){(cd "`dirname "$1"`"&&pwd -P)}
real_path(){(cd "`dirname "$1"`" && pwd -P | tr \\n / && basename "$1")}


# LIBDIR & HOOKDIR are populated by the install script
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

real_path(){(cd "`dirname "$1"`"&&pwd -P)}
real_path(){(cd "`dirname "$1"`" && pwd -P | tr \\n / && basename "$1")}
config () { git config --get auto-build`printf ".%s" "$@"`; }
config-all () { git config --get-all auto-build`printf ".%s" "$@"`; }