From fa328c97cc72b37075c37bd154e5f431b051f19d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 24 Jan 2018 17:43:46 +0100 Subject: itzks.list APT file creation: coding style fixes, Always append to the empty file. --- install-itzks-workstation | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install-itzks-workstation b/install-itzks-workstation index fe5b605..a08d52d 100644 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -23,10 +23,9 @@ fi invoke-rc.d fetch-ldap-cert start # Add itzks.list and its contents if file not already there -if [ ! -e /etc/apt/sources.list.d/itzks.list ] - then +if [ ! -e "/etc/apt/sources.list.d/itzks.list" ]; then touch /etc/apt/sources.list.d/itzks.list - echo "deb http://packages.it-zukunft-schule.de/debian stretch main contrib non-free" > /etc/apt/sources.list.d/itzks.list + echo "deb http://packages.it-zukunft-schule.de/debian stretch main contrib non-free" >> /etc/apt/sources.list.d/itzks.list echo "deb http://packages.it-zukunft-schule.de/debian stretch-backports main contrib non-free" >> /etc/apt/sources.list.d/itzks.list echo "deb http://packages.it-zukunft-schule.de/debian sid main contrib non-free" >> /etc/apt/sources.list.d/itzks.list fi -- cgit v1.2.3