From 3db5fe56b464586128e612c4eb971dc813c627c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=AE=E3=83=AA=E3=83=B3=E3=82=B0=E3=83=8F=E3=83=A0?= =?UTF-8?q?=E3=83=94=E3=82=A2=E3=83=BC=E3=82=B9?= Date: Wed, 14 Sep 2022 12:49:34 +0900 Subject: [PATCH] =?UTF-8?q?MAC=E5=B0=82=E7=94=A8=E3=82=B3=E3=83=9E?= =?UTF-8?q?=E3=83=B3=E3=83=89=E3=82=92=E5=86=8D=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/replace_version.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/replace_version.sh b/bin/replace_version.sh index 0d46cff..ea1a2ff 100755 --- a/bin/replace_version.sh +++ b/bin/replace_version.sh @@ -104,5 +104,14 @@ for file in $files; do sed -i "s/eccube_update_plugin_${CURRENT_FROM}_${CURRENT_TO}_php_path/eccube_update_plugin_${NEXT_FROM}_${NEXT_TO}_php_path/g" $file fi done -sed -i "s/EccubeUpdater${CURRENT_FROM}to${CURRENT_TO}/EccubeUpdater${NEXT_FROM}to${NEXT_TO}/g" composer.json -sed -i "s/eccubeupdater${CURRENT_FROM}to${CURRENT_TO}/eccubeupdater${NEXT_FROM}to${NEXT_TO}/g" composer.json + +# MACOS専用コマンド +if [ "$(uname)" == "Darwin" ]; then + sed -i '' "s/EccubeUpdater${CURRENT_FROM}to${CURRENT_TO}/EccubeUpdater${NEXT_FROM}to${NEXT_TO}/g" composer.json + sed -i '' "s/eccubeupdater${CURRENT_FROM}to${CURRENT_TO}/eccubeupdater${NEXT_FROM}to${NEXT_TO}/g" composer.json +# LINUX専用コマンド +elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then + sed -i "s/EccubeUpdater${CURRENT_FROM}to${CURRENT_TO}/EccubeUpdater${NEXT_FROM}to${NEXT_TO}/g" composer.json + sed -i "s/eccubeupdater${CURRENT_FROM}to${CURRENT_TO}/eccubeupdater${NEXT_FROM}to${NEXT_TO}/g" composer.json +fi +