OSDN Git Service

[update] : Changed to skip reading nonexistent files.
authorhayao <shun819.mail@gmail.com>
Thu, 14 May 2020 14:04:25 +0000 (23:04 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 14 May 2020 14:04:25 +0000 (23:04 +0900)
lubs

diff --git a/lubs b/lubs
index d9fbafc..0f2077a 100755 (executable)
--- 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
 }