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)
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