From e73c89c4cd6b782dfbbd2e964812aca44d3fb383 Mon Sep 17 00:00:00 2001 From: Gardais Jeremy Date: Thu, 15 Feb 2018 16:52:51 +0100 Subject: [PATCH] Don't try to unlink lts file if link doesn't exists --- scripts/download_ubuntu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/download_ubuntu.sh b/scripts/download_ubuntu.sh index 9c5d5fe..15173b7 100755 --- a/scripts/download_ubuntu.sh +++ b/scripts/download_ubuntu.sh @@ -27,7 +27,9 @@ for DISTRO in artful ${LTS}; do done # Link the LTS distribution name to lts -unlink ${TFTP_DIRECTORY}/installer/ubuntu/lts +if [ -L "${TFTP_DIRECTORY}/installer/ubuntu/lts" ]; then + unlink ${TFTP_DIRECTORY}/installer/ubuntu/lts +fi ln -s ${LTS} ${TFTP_DIRECTORY}/installer/ubuntu/lts exit 0