Skip to content

Commit

Permalink
fix: include Dockerfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfangAukang committed Nov 19, 2024
1 parent 3b22e56 commit 4f72799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion simplerisk-minimal/generate_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
for image in "${images[@]}"
do
image_dir="php${image:0:1}${image: -1}"
[ -d "$image_dir" ] || mkdir -p "$image_dir"
[ -d "$image_dir" ] || mkdir -p "${SCRIPT_LOCATION}/${image_dir}"
cat << EOF > "${SCRIPT_LOCATION}/${image_dir}/Dockerfile"
# Dockerfile generated by script
# Using dedicated PHP image with version $image and Apache
Expand Down
4 changes: 2 additions & 2 deletions simplerisk/generate_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ case "$image" in
'noble') php_version='8.3';;
esac

if [ ! -d "$image" ]; then
mkdir "$image"
if [ ! -d "${SCRIPT_LOCATION}/${image}" ]; then
mkdir "${SCRIPT_LOCATION}/${image}"
fi

cat << EOF > "${SCRIPT_LOCATION}/${image}/Dockerfile"
Expand Down

0 comments on commit 4f72799

Please sign in to comment.