Skip to content

Commit d79ef02

Browse files
committed
only grab metadata about recording dir if it exists
1 parent 65a625b commit d79ef02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vrecord

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,7 @@ _writeingestlog "operating_system_VERSION" "$(uname -v)"
30963096
_writeingestlog "vrecord version" "${VERSION}"
30973097
_writeingestlog "datetime_start" "$(_get_iso8601)"
30983098

3099+
if [[ -d "${DIR}" ]] ; then
30993100
MOUNT_PATH="$(df -Ph "${DIR}" 2>/dev/null | tail -n 1 | awk '{print $6}')"
31003101
if [[ "${OS_TYPE}" = "macOS" ]] ; then
31013102
VOLUME_INFO="$(diskutil info "${MOUNT_PATH}")"
@@ -3113,6 +3114,7 @@ if [[ "${OS_TYPE}" = "macOS" ]] ; then
31133114
_writeingestlog "capture_device_volume_available" "$(_parse_report "Volume Available Space" "${VOLUME_INFO}")"
31143115
_writeingestlog "capture_device_volume_total" "$(_parse_report "Volume Total Space" "${VOLUME_INFO}")"
31153116
fi
3117+
fi
31163118

31173119
_writeingestlog "FILE_PATH" "${VRECORD_OUTPUT}"
31183120

0 commit comments

Comments
 (0)