mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-26 18:53:40 +09:00
add logic for non-existant link and file not existing either
This commit is contained in:
@@ -24,7 +24,8 @@ symlinks=( \
|
||||
|
||||
for i in "${symlinks[@]}"
|
||||
do
|
||||
[[ -e "$i" && ! -L "$i" ]] && rm -rf "$i"; ln -s /config/www/"$(basename "$i")" "$i"
|
||||
[[ -e "$i" && ! -L "$i" ]] && rm -rf "$i"
|
||||
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||
done
|
||||
|
||||
# permissions
|
||||
|
||||
Reference in New Issue
Block a user