| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
SOURCESLIST="" |
| 4 |
if [ -e "/etc/apt/sources.list" ]; then |
| 5 |
SOURCESLIST="/etc/apt/sources.list" |
| 6 |
fi |
| 7 |
|
| 8 |
for file in /etc/apt/sources.list.d/*; do |
| 9 |
if [ -f "${file}" ] || [ -L "${file}" ]; then |
| 10 |
SOURCESLIST="${SOURCESLIST} ${file}" |
| 11 |
fi |
| 12 |
done |