Added check to see if 'ID' = 'debian' before creating 'contrib.sources' due to elementaryOS sharing this porting of 'debian.sh' with Debian

This commit is contained in:
2025-12-24 17:12:10 -05:00
parent 4d223b8815
commit feb638b9f1

View File

@@ -10,7 +10,7 @@ source \
if [[ "${1}" == '--live' ]]; then
if [[ "${ID}" == 'debian' ]] && if [[ ! "$(hostname)" == "debian-live" ]]; then
if [[ "${ID}" == 'debian' ]] && [[ ! "$(hostname)" == "debian-live" ]]; then
cat << EOF | tee /etc/apt/sources.list.d/contrib.sources 1> /dev/null
Enabled: yes
Types: deb