From: hayao Date: Thu, 14 May 2020 14:04:25 +0000 (+0900) Subject: [update] : Changed to skip reading nonexistent files. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c9249034d1cde00dfd3b42fab457e8bc6933a5be;p=alterlinux%2FLUBS.git [update] : Changed to skip reading nonexistent files. --- diff --git a/lubs b/lubs index d9fbafc..0f2077a 100755 --- a/lubs +++ b/lubs @@ -206,9 +206,11 @@ make_sourcelist() { PPA_FILELIST=("${channels_dir}/${channel_name}/ppa_list.${arch}" _apt_install software-properties-common for _PPA_FILE in ${PPA_FILELIST[@]}; do - for _ppa in $(grep -h -v ^'#' ${_PPA_FILE}); do - run_cmd add-apt-repository --yes "${_ppa}" - done + if [[ -f "${_PPA_FILE}" ]]; then + for _ppa in $(grep -h -v ^'#' ${_PPA_FILE}); do + run_cmd add-apt-repository --yes "${_ppa}" + done + fi done }