mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-17 23:03:47 +01:00
cleanup: also remove dangling symlinks
This commit is contained in:
@@ -1884,6 +1884,10 @@ command_cleanup() {
|
||||
# Look up current file in use
|
||||
current="$(basename "$(readlink "${certdir}/${filetype}")")"
|
||||
else
|
||||
if [[ -h "${certdir}/${filetype}" ]]; then
|
||||
echo "Removing broken symlink: ${certdir}/${filetype}"
|
||||
rm -f "${certdir}/${filetype}"
|
||||
fi
|
||||
current=""
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user