checking for filesize already includes check for file existence
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
e40c497722
commit
e829fe65cd
1 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ name="$__object_id"
|
|||
repo_name="${name#ppa:}"
|
||||
repo_file_name="$(echo "$repo_name" | sed "s:\/:\-:")-${DISTRIB_CODENAME}.list"
|
||||
|
||||
[ -f "/etc/apt/sources.list.d/${repo_file_name}" -a \
|
||||
-s "/etc/apt/sources.list.d/${repo_file_name}" ] \
|
||||
[ -s "/etc/apt/sources.list.d/${repo_file_name}" ] \
|
||||
&& echo enabled || echo disabled
|
||||
|
||||
|
|
Loading…
Reference in a new issue