OSDN Git Service
(root)
/
alterlinux
/
LUBS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eedc21
)
[update] : Changed to skip reading nonexistent files.
author
hayao
<shun819.mail@gmail.com>
Thu, 14 May 2020 14:04:25 +0000
(23:04 +0900)
committer
hayao
<shun819.mail@gmail.com>
Thu, 14 May 2020 14:04:25 +0000
(23:04 +0900)
lubs
patch
|
blob
|
history
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
}