don't print broken symlinks

This commit is contained in:
James Barnett 2018-02-28 15:35:26 -05:00
parent 9a796f490b
commit 24891dfce3
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -132,7 +132,7 @@ for CONFIG in $SNAPPER_CONFIGS; do
elif [[ -f $prefile && "$pre_or_post" == "post" ]]; then
if [[ "$LINK_MODULES" == "yes" && "$kernel_updated" == "yes" && "$CONFIG" == "root" ]]; then
printf "==> Symlinking old kernel modules...\n"
find /usr/lib/modules -xtype l -delete -print
find /usr/lib/modules -xtype l -delete
ln -sv /.snapshots/$(<$prefile)/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/
fi
x=$($snapper_cmd "$(truncate_description $POST_DESCRIPTION)" --pre-number "$(< "$prefile")")