Skip to content

Commit

Permalink
MAC専用コマンドを再追加。
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-gillingham committed Sep 14, 2022
1 parent 5c92ac0 commit 3db5fe5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/replace_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3db5fe5

Please sign in to comment.