Skip to content

Commit

Permalink
fix for defect 116472
Browse files Browse the repository at this point in the history
  • Loading branch information
bsanaei committed May 2, 2016
1 parent 0d2f9ea commit 4daae2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion image_utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if [ $IMAGE_LIMIT -gt 0 ]; then
if [ $NUMBER_IMAGES -ge $IMAGE_LIMIT ]; then
if [ $len_not_used -gt 0 ]; then
# sort the IMAGES_ARRAY_NOT_USED array
IMAGES_ARRAY_NOT_USED=( $(
bsIMAGES_ARRAY_NOT_USED=( $(
for el in "${IMAGES_ARRAY_NOT_USED[@]}"
do
echo "$el"
Expand All @@ -166,6 +166,7 @@ if [ $IMAGE_LIMIT -gt 0 ]; then
log_and_echo "$ERROR" "deleting image failed: $IC_COMMAND rmi ${IMAGES_ARRAY_NOT_USED[$index_not_used]}"
log_and_echo "$ERROR" "${RESPONSE}"
fi
((index_not_used++))
if [ $len_not_used -le 0 ]; then
break
fi
Expand Down

0 comments on commit 4daae2b

Please sign in to comment.