From 6a193049758cd42dcc7f1d3251a7923783fcc80a Mon Sep 17 00:00:00 2001 From: hayao Date: Sat, 25 Jul 2020 17:42:34 +0900 Subject: [PATCH] [update] : part one liner --- build.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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をコピーする -- 2.11.0