diff options
Diffstat (limited to 'scripts/makerpm.sh')
-rwxr-xr-x | scripts/makerpm.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/makerpm.sh b/scripts/makerpm.sh index 52104c8af..bfa2b47f0 100755 --- a/scripts/makerpm.sh +++ b/scripts/makerpm.sh @@ -4,9 +4,9 @@ PWD=`pwd` ## If we're not in the scripts directory ## assume the base directory. -if test "`basename $PWD`" != "scripts" && \ - test -d scripts; then - cd scripts +if test "`basename $PWD`" != "scripts"; then + MYOLDPWD=`pwd` + cd `dirname $0` fi ./makedist.sh @@ -25,5 +25,5 @@ then fi if test "`basename $PWD`" != "scripts"; then - cd .. + cd $MYOLDPWD fi |