Srcdir is the argument itself, not its dirname
This commit is contained in:
parent
80c2c1dbcd
commit
1d94a4ff40
@ -8,8 +8,7 @@ if [ ! -d $1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
srcdir=`dirname $1`
|
||||
srcdir=`cd $srcdir && pwd`
|
||||
srcdir=`cd $1 && pwd`
|
||||
|
||||
if [ "`cd $srcdir && hg st`" ]; then
|
||||
echo "uncommitted changes, aborting"
|
||||
|
Loading…
x
Reference in New Issue
Block a user