mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
devenv
This commit is contained in:
parent
0da52ef02c
commit
f28ce9d07b
1 changed files with 3 additions and 1 deletions
|
@ -45,12 +45,14 @@ setup_clean_view() {
|
||||||
for dir in "${DIRECTORIES[@]}"; do
|
for dir in "${DIRECTORIES[@]}"; do
|
||||||
current="${CODE_SERVER_WORKSPACE_DIR}"/"${dir}"
|
current="${CODE_SERVER_WORKSPACE_DIR}"/"${dir}"
|
||||||
if [ -L "${current}" ] && [ -e "${current}" ]; then
|
if [ -L "${current}" ] && [ -e "${current}" ]; then
|
||||||
bashio::log.info "${dir} has good link"
|
bashio::log.info "${dir} has good link."
|
||||||
elif [ ! -e "${current}" ]; then
|
elif [ ! -e "${current}" ]; then
|
||||||
|
bashio::log.warning "Failed link: ${dir}. Removing and recreating..."
|
||||||
rm -f "${current}"
|
rm -f "${current}"
|
||||||
ln -sn "/${dir}" "$current" ||
|
ln -sn "/${dir}" "$current" ||
|
||||||
bashio::log.warning "Failed linking common directory: ${dir}"
|
bashio::log.warning "Failed linking common directory: ${dir}"
|
||||||
else
|
else
|
||||||
|
bashio::log.warning "Creating link for: ${dir}..."
|
||||||
ln -sn "/${dir}" "$current" ||
|
ln -sn "/${dir}" "$current" ||
|
||||||
bashio::log.warning "Failed linking common directory: ${dir}"
|
bashio::log.warning "Failed linking common directory: ${dir}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue