Merge pull request #60 from jpoimboe/fix-bash-x

kpatch-build: fix SCRIPTDIR for bash -x
This commit is contained in:
Seth Jennings 2014-03-14 17:01:05 -05:00
commit 37ba81f4ef

View File

@ -38,7 +38,7 @@
BASE="$PWD"
LOGFILE="/tmp/kpatch-build-$(date +%s).log"
SCRIPTDIR="$(readlink -f $(dirname $0))"
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
ARCHVERSION="$(uname -r)"
DISTROVERSION="${ARCHVERSION%*.*}"
LOCALVERSION="-${ARCHVERSION##*-}"