GitHubのミラーです
https://github.com/hayao0819/crshini
Révision | 99d2925aa11940d00c21a0267e4d64054e942ef7 (tree) |
---|---|
l'heure | 2021-06-08 21:48:26 |
Auteur | hayao <hayao@fasc...> |
Commiter | hayao |
[fix] : Fixed for array
@@ -200,8 +200,7 @@ _crshini_set(){ | ||
200 | 200 | # --merge command |
201 | 201 | _crshini_merge(){ |
202 | 202 | # Set variables |
203 | - local _crshini_merge_file="${1}" _crshini_merge_section="${2-""}" _crshini_merge_source __section _crshini_merge_sectionlist=() | |
204 | - _crshini_merge_source="$(cat -)" | |
203 | + local _crshini_merge_file="${1}" _crshini_merge_section="${2-""}" _crshini_merge_source __section _crshini_merge_sectionlist=() _crshini_merge_source="$(cat -)" | |
205 | 204 | |
206 | 205 | # Get sections |
207 | 206 | if [[ -z "${_crshini_merge_section}" ]]; then |
@@ -263,7 +262,7 @@ _crshini_del(){ | ||
263 | 262 | |
264 | 263 | if [[ "${_crshini_del_insection}" = false ]]; then |
265 | 264 | _crshini_del_lineout=true # 出力する |
266 | - elif [[ -z "${_crshini_del_param}" ]]; then #あとで配列版に書き直す | |
265 | + elif (( "${#_crshini_del_param[@]}" == 0 )); then | |
267 | 266 | _crshini_del_lineout=false # セクション内にいて、パラメータが設定されていないので出力しない |
268 | 267 | else |
269 | 268 | for __param in "${_crshini_del_param[@]}"; do |