Do not rely on "type -p"

Apparently dash (used as bin/sh on Ubuntu) does not support type -p.

Thanks to Esben Madsen for noticing and suggesting a fix.
This commit is contained in:
Frej Drejhammar
2014-09-23 15:01:02 +02:00
parent 8a8bd170f7
commit f64c10ba14

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
ROOT="`dirname "$(type -p $0)"`"
ROOT="$(dirname "$(which "$0")")"
REPO=""
PFX="hg2git"
SFX_MAPPING="mapping"