mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
fix build script --no-cache.
This commit is contained in:
@@ -65,7 +65,7 @@ while [[ "$#" -gt 0 ]]; do
|
||||
--base_image|-b) BASE_IMAGE="$2"; shift ;;
|
||||
--application|-a) APPLICATION="$2"; shift ;;
|
||||
--yes|-y) YES=1 ;;
|
||||
--no-cache) NO_CACHE="--no-cache" log "Building without cache" ;;
|
||||
--no-cache) NO_CACHE=1 ;;
|
||||
--push) PUSH=1 ;;
|
||||
--help|-h) help; exit 0 ;;
|
||||
-*) log "Unknown parameter passed: $1"; help; exit 1 ;;
|
||||
@@ -268,6 +268,13 @@ if [ -z "$BASE_IMAGE" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -z "$NO_CACHE" ] && [ "$NO_CACHE" != "0" ]; then
|
||||
NO_CACHE="--no-cache"
|
||||
log "Building without cache"
|
||||
else
|
||||
NO_CACHE=""
|
||||
fi
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
if [ ! -z "$APPLICATION" ]; then
|
||||
|
||||
Reference in New Issue
Block a user