From: hayao Date: Sat, 25 Jul 2020 08:42:34 +0000 (+0900) Subject: [update] : part one liner X-Git-Tag: rc3-alpha1~193^2~61^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6a193049758cd42dcc7f1d3251a7923783fcc80a;p=alterlinux%2Falterlinux.git [update] : part one liner --- diff --git a/build.sh b/build.sh index bf2284ba..06b59bc5 100755 --- a/build.sh +++ b/build.sh @@ -342,9 +342,7 @@ remove() { # Debug line debug_line() { - if [[ "${debug}" = true ]]; then - echo - fi + [[ "${debug}" = true ]] && echo } # 強制終了時にアンマウント @@ -448,7 +446,7 @@ prepare_build() { # If there is config for share channel. load that. load_config "${script_path}/channels/share/config.any" - load_config ${script_path}/channels/share/config.${arch} + load_config "${script_path}/channels/share/config.${arch}" # If there is config for each channel. load that. load_config "${script_path}/channels/${channel_name}/config.any" @@ -877,9 +875,7 @@ make_packages_aur() { ) for _file in ${excludefile[@]}; do - if [[ -f "${_file}" ]]; then - excludelist=( ${excludelist[@]} $(grep -h -v ^'#' "${_file}") ) - fi + [[ -f "${_file}" ]] && excludelist=( ${excludelist[@]} $(grep -h -v ^'#' "${_file}") ) done # 現在のpkglistをコピーする