Tools: install-prereqs-ubuntu : prevent crash when link already exist

This commit is contained in:
Pierre Kancir 2020-06-03 18:54:22 +02:00 committed by Peter Barker
parent e40480a0ed
commit b238d081ac

View File

@ -118,8 +118,8 @@ function install_arm_none_eabi_toolchain() {
)
fi
echo "Registering STM32 Toolchain for ccache"
sudo ln -s $CCACHE_PATH /usr/lib/ccache/arm-none-eabi-g++
sudo ln -s $CCACHE_PATH /usr/lib/ccache/arm-none-eabi-gcc
sudo ln -s -f $CCACHE_PATH /usr/lib/ccache/arm-none-eabi-g++
sudo ln -s -f $CCACHE_PATH /usr/lib/ccache/arm-none-eabi-gcc
echo "Done!"
}