From f64c10ba1406c484704e75368ee1e781f13f4de0 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Tue, 23 Sep 2014 15:01:02 +0200 Subject: [PATCH] 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. --- hg-fast-export.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.sh b/hg-fast-export.sh index e44d76d..3747fc6 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -3,7 +3,7 @@ # Copyright (c) 2007, 2008 Rocco Rutte and others. # License: MIT -ROOT="`dirname "$(type -p $0)"`" +ROOT="$(dirname "$(which "$0")")" REPO="" PFX="hg2git" SFX_MAPPING="mapping" -- 2.11.0