Shorter
This commit is contained in:
1 parent
d9d8dc50c6
commit
89063e4fee
1 file changed
+1
-2
@@ -54,8 +54,7 @@ if [ -d "/var/cache/pacman/pkg" ]; then
|
|||||||
DOCKER_ARGS+=(-v "/var/cache/pacman/pkg:/var/cache/pacman/pkg")
|
DOCKER_ARGS+=(-v "/var/cache/pacman/pkg:/var/cache/pacman/pkg")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mount the build cache directory where packages are downloaded for the offline repo
|
# Mount the build cache directory where packages are downloaded
|
||||||
# Only applicable for offline builds and when --no-cache is not specified
|
|
||||||
if [[ -z "$NO_CACHE" ]]; then
|
if [[ -z "$NO_CACHE" ]]; then
|
||||||
# using a dated dir on the host to refresh daily if building multiple times
|
# using a dated dir on the host to refresh daily if building multiple times
|
||||||
BUILD_DATE=$(date +%Y-%m-%d)
|
BUILD_DATE=$(date +%Y-%m-%d)
|
||||||
|
|||||||
Reference in new issue
Block a user