1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

Simplify path specification for SOURCE and CCACHE directories

After all, Docker deals fine with symlinks here, so calling
stat/readlink is not needed.
This commit is contained in:
Michael Stucki 2017-04-21 12:48:19 +02:00
parent 671f02b880
commit e8ae111907

10
run.sh
View File

@ -2,14 +2,8 @@
cd $(dirname $0) cd $(dirname $0)
if [[ $OSTYPE == "darwin"* ]]; then SOURCE=$(pwd)/android
SOURCE=$(stat -f %N $(pwd)/android) CCACHE=$(pwd)/ccache
CCACHE=$(stat -f %N $(pwd)/ccache)
else
SOURCE=$(readlink -f $(pwd)/android)
CCACHE=$(readlink -f $(pwd)/ccache)
fi
CONTAINER_HOME=/home/build CONTAINER_HOME=/home/build
CONTAINER=lineageos CONTAINER=lineageos
REPOSITORY=stucki/lineageos REPOSITORY=stucki/lineageos