Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
内容
sed
の-i
を使用しないinstaller_linux.sh
の300行目で上書き置換のためにsed -i
を用いています。しかし、MacやBSD系OSのsedは
sed -i
でバックアップファイル拡張子を要求するために、現状のinstaller_linux.sh
ではエラーが起きます。またPOSIX sedでは
-i
自体が無いためこれまたエラーが起きます。なので、
-i
を使わない実装に変更しました。libsndfile
の存在確認方法Macには
ldconfig
が無いため、ldcondig -p|grep libsndfile
ではなく[ -d /usr/local/Cellar/libsndfile ]
で調べる必要があります。readarray
をなくすreadarray
はbash 4.xから導入されたものなので、古い環境では動作しません。特にMacのプレインストールはbash 3.2です。
そのため独自実装のものに置き換えました。
また
declare -gA
もbash 4.2以上なので、eval "$var"'=()'
でグローバル配列を宣言しています。関連 Issue
なし
スクリーンショット・動画など
なし
その他