Only add source if doesnt already exist

This commit is contained in:
Jake Howard 2016-02-12 10:11:16 +00:00
parent 696e2a6a78
commit b2d3f03b4c

View file

@ -1,6 +1,21 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo "deb http://downloads.hipchat.com/linux/apt stable main" > /etc/apt/sources.list.d/atlassian-hipchat.list
echo "deb http://apt.insynchq.com/ubuntu wily non-free contrib" > /etc/apt/sources.list.d/insync.list if [ -a /etc/apt/sources.list.d/atlassian-hipchat.list ]; then
echo "deb http://download.virtualbox.org/virtualbox/debian wily contrib" > /etc/apt/sources.list.d/virtualbox.list echo "deb http://downloads.hipchat.com/linux/apt stable main" >> /etc/apt/sources.list.d/atlassian-hipchat.list
echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_15.10/ /' >> /etc/apt/sources.list.d/owncloud-client.list fi
if [ -a /etc/apt/sources.list.d/insync.list ]; then
echo "deb http://apt.insynchq.com/ubuntu wily non-free contrib" >> /etc/apt/sources.list.d/insync.list
fi
if [ -a /etc/apt/sources.list.d/virtualbox.list ]; then
echo "deb http://download.virtualbox.org/virtualbox/debian wily contrib" >> /etc/apt/sources.list.d/virtualbox.list
if
if [ -a /etc/apt/sources.list.d/owncloud-client.list ]; then
echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_15.10/ /' >> /etc/apt/sources.list.d/owncloud-client.list
fi