fix BUILD_ROOT variable read error 82/185782/1
authorjingui.ren <jingui.ren@samsung.com>
Tue, 12 Jun 2018 11:51:01 +0000 (19:51 +0800)
committerjingui.ren <jingui.ren@samsung.com>
Thu, 2 Aug 2018 08:41:08 +0000 (16:41 +0800)
Change-Id: Icf7eab6730a5523d98e0eee20dc466191f92a271

build
build-pkg-arch

diff --git a/build b/build
index c02e12b..fd11b70 100755 (executable)
--- a/build
+++ b/build
@@ -441,7 +441,7 @@ setupccache() {
                echo 'export PATH=/usr/lib/icecc/bin:/opt/icecream/bin:/usr/bin:$PATH' >> "$BUILD_ROOT"/var/lib/build/ccache/bin/$i
                echo "ccache $i \"\$@\"" >> "$BUILD_ROOT"/var/lib/build/ccache/bin/$i
                chmod 755 "$BUILD_ROOT"/var/lib/build/ccache/bin/$i
-               echo "Installed ccache wrapper as '$BUILD_ROOT'/var/lib/build/ccache/bin/$i"
+               echo "Installed ccache wrapper as $BUILD_ROOT/var/lib/build/ccache/bin/$i"
            done
        fi
        mkdir -p "$BUILD_ROOT/.ccache"
index be5dac5..3328700 100644 (file)
@@ -68,7 +68,7 @@ pkg_preinstall_arch() {
 }
 
 pkg_runscripts_arch() {
-    if test -e "'$BUILD_ROOT'/.init_b_cache/scripts/$PKG.post" ; then
+    if test -e "$BUILD_ROOT/.init_b_cache/scripts/$PKG.post" ; then
        echo "running $PKG postinstall script"
        ( cd "$BUILD_ROOT" && chroot "$BUILD_ROOT" ".init_b_cache/scripts/$PKG.post" < /dev/null )
        rm -f "$BUILD_ROOT/.init_b_cache/scripts/$PKG.post"