diff options
author | Michael Schroeder <mls@suse.de> | 2014-10-14 18:43:35 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-10-14 18:43:35 +0200 |
commit | c1860ce9b72f4d661f62f0d838536e26464da84b (patch) | |
tree | 782e675a136aa5634dec55a84adacca395b56019 | |
parent | c6526b4d1a79ac3acfc99bf29067d73093ee7776 (diff) |
strip trailing slash from BUILD_ROOT
Fixes issue #146.
-rwxr-xr-x | build | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -594,6 +594,8 @@ become_root_or_fail() { } mkdir_build_root() { + # strip trailing slash + test "$BUILD_ROOT" != / && BUILD_ROOT="${BUILD_ROOT%/}" if test -d "$BUILD_ROOT" ; then # check if it is owned by root if test -z "$RUNNING_IN_VM" -a \! -O "$BUILD_ROOT" -a "`stat -c %u $BUILD_ROOT`" -ne 0 ; then |