From a6079d6f24be5e7bcdc864b095628dffc839a461 Mon Sep 17 00:00:00 2001 From: Kris <1611248+Rinzwind@users.noreply.github.com> Date: Sun, 6 Aug 2023 12:00:53 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20bug=20in=20=E2=80=98pharo::prepare=5Fim?= =?UTF-8?q?age=E2=80=99=20where=20the=20image=20was=20always=20downloaded?= =?UTF-8?q?=20again=20due=20to=20=E2=80=98is=5Ffile=E2=80=99=20being=20use?= =?UTF-8?q?d=20instead=20of=20=E2=80=98is=5Fdir=E2=80=99=20to=20test=20the?= =?UTF-8?q?=20existence=20of=20the=20=E2=80=98target=E2=80=99=20directory.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pharo/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pharo/run.sh b/pharo/run.sh index d853d674..855bae5f 100644 --- a/pharo/run.sh +++ b/pharo/run.sh @@ -270,8 +270,8 @@ pharo::prepare_image() { local target="${SMALLTALK_CI_CACHE}/${smalltalk_name}" local pharo_zeroconf="${target}/zeroconfig" - if ! is_file "${target}"; then - is_dir "${target}" || mkdir "${target}" + if ! is_dir "${target}"; then + mkdir "${target}" pushd "${target}" > /dev/null fold_start download_image "Downloading ${smalltalk_name} image..." download_file "${pharo_image_url}" "${pharo_zeroconf}"