Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
done
if test -z "$destdir"; then
- echo "ERROR: destination directory was not specified"
- exit 1
+ echo "ERROR: destination directory was not specified"
+ exit 1
fi
# shellcheck disable=SC2162 # file/folder name can include escaped symbols
# Verify no broken symlinks
if test "$(find "$destdir" -xtype l | wc -l)" -ne 0 ; then
- echo "ERROR: Broken symlinks found:"
- find "$destdir" -xtype l
- exit 1
+ echo "ERROR: Broken symlinks found:"
+ find "$destdir" -xtype l
+ exit 1
fi
exit 0