From 2b4476a14f8b443032d77e0eb46f7937a81aac79 2020-02-15 23:13:20 From: Unknown Date: 2020-02-15 23:13:20 Subject: [PATCH] missing if --- diff --git a/bootstrap.d/11-apt.sh b/bootstrap.d/11-apt.sh index 6a8187d..aa423d7 100644 --- a/bootstrap.d/11-apt.sh +++ b/bootstrap.d/11-apt.sh @@ -23,6 +23,10 @@ sed -i "s,stretch\\/updates,testing-security," "${ETC_DIR}/apt/sources.list" sed -i "s/ stretch/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list" fi +if [ "$ENABLE_NONFREE" = "true" ] ; then +sed -i "s,main contrib,main contrib non-free," "${ETC_DIR}/apt/sources.list" +fi + if [ -z "$RELEASE" ] ; then # Change release in sources list sed -i "s/ stretch/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list"