Cross Forests
/
projects
/
python
/
fast-export.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a8bd17
)
Do not rely on "type -p"
author
Frej Drejhammar
<frej.drejhammar@gmail.com>
Tue, 23 Sep 2014 13:01:02 +0000
(15:01 +0200)
committer
Frej Drejhammar
<frej.drejhammar@gmail.com>
Tue, 23 Sep 2014 13:01:02 +0000
(15:01 +0200)
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
patch
|
blob
|
history
diff --git
a/hg-fast-export.sh
b/hg-fast-export.sh
index
e44d76d
..
3747fc6
100755
(executable)
--- a/
hg-fast-export.sh
+++ b/
hg-fast-export.sh
@@
-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"