scripts/rebuild-rhel-kernel-rpm: Make this script work when started with a relative path

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4206 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-04-12 12:20:31 +00:00
parent f022a827ba
commit 52cc71c5ef
+3
View File
@@ -38,6 +38,9 @@
############################################################################
scst_dir="$(dirname "$(dirname "$0")")"
if [ ${scst_dir:0:1} != "/" ]; then
scst_dir="$PWD/${scst_dir}"
fi
downloaddir=$HOME/software/downloads
rpmbuild_dir=$HOME/rpmbuild
if [ "$1" = "" ]; then