Skip to content

Commit

Permalink
CHE-5247: fix cmd download and cmd offline (eclipse-che#5263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Iuvshyn authored Jun 1, 2017
1 parent df22155 commit 49a6571
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dockerfiles/base/scripts/base/commands/cmd_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ post_cmd_download() {

cmd_download() {
FORCE_UPDATE=${1:-"--no-force"}
local IMAGES=${IMAGE_LIST}
IMAGES+=$'\n'${BOOTSTRAP_IMAGE_LIST}
IMAGES+=$'\n'${UTILITY_IMAGE_LIST}

IFS=$'\n'
for SINGLE_IMAGE in $IMAGE_LIST; do
for SINGLE_IMAGE in $IMAGES; do
VALUE_IMAGE=$(echo $SINGLE_IMAGE | cut -d'=' -f2)
if [[ $FORCE_UPDATE == "--force" ]] ||
[[ $FORCE_UPDATE == "--pull" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/base/scripts/base/commands/cmd_offline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ post_cmd_offline() {
cmd_offline() {
# Read in optional stack images
readarray -t STACK_IMAGE_LIST < /version/$CHE_VERSION/images-stacks
readarray -t BOOTSTRAP_IMAGE_LIST < ${SCRIPTS_BASE_CONTAINER_SOURCE_DIR}/images/images-bootstrap
readarray -t UTILITY_IMAGE_LIST < ${SCRIPTS_BASE_CONTAINER_SOURCE_DIR}/images/images-utilities
BOOTSTRAP_IMAGE_LIST=$(cat ${SCRIPTS_BASE_CONTAINER_SOURCE_DIR}/images/images-bootstrap)
UTILITY_IMAGE_LIST=$(cat ${SCRIPTS_BASE_CONTAINER_SOURCE_DIR}/images/images-utilities)

# List all images to be saved
if [[ $# -gt 0 ]] && [[ $1 = "--list" ]]; then
Expand Down

0 comments on commit 49a6571

Please sign in to comment.