This commit is contained in:
Richard Sperry 2025-04-16 23:54:22 -07:00
parent 0da52ef02c
commit f28ce9d07b

View file

@ -45,12 +45,14 @@ setup_clean_view() {
for dir in "${DIRECTORIES[@]}"; do
current="${CODE_SERVER_WORKSPACE_DIR}"/"${dir}"
if [ -L "${current}" ] && [ -e "${current}" ]; then
bashio::log.info "${dir} has good link"
bashio::log.info "${dir} has good link."
elif [ ! -e "${current}" ]; then
bashio::log.warning "Failed link: ${dir}. Removing and recreating..."
rm -f "${current}"
ln -sn "/${dir}" "$current" ||
bashio::log.warning "Failed linking common directory: ${dir}"
else
bashio::log.warning "Creating link for: ${dir}..."
ln -sn "/${dir}" "$current" ||
bashio::log.warning "Failed linking common directory: ${dir}"
fi