From e8ae111907ed8ef099f5bfac4bbc3539044cac3f Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Fri, 21 Apr 2017 12:48:19 +0200 Subject: [PATCH] Simplify path specification for SOURCE and CCACHE directories After all, Docker deals fine with symlinks here, so calling stat/readlink is not needed. --- run.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/run.sh b/run.sh index 475417f..1ad902c 100755 --- a/run.sh +++ b/run.sh @@ -2,14 +2,8 @@ cd $(dirname $0) -if [[ $OSTYPE == "darwin"* ]]; then - SOURCE=$(stat -f %N $(pwd)/android) - CCACHE=$(stat -f %N $(pwd)/ccache) -else - SOURCE=$(readlink -f $(pwd)/android) - CCACHE=$(readlink -f $(pwd)/ccache) -fi - +SOURCE=$(pwd)/android +CCACHE=$(pwd)/ccache CONTAINER_HOME=/home/build CONTAINER=lineageos REPOSITORY=stucki/lineageos