From d39d08a738a16911184735b38a82b1c3d47d98a2 Mon Sep 17 00:00:00 2001 From: cimryan Date: Sat, 13 Oct 2018 20:50:34 -0700 Subject: [PATCH] Mount the archive and move the files into it. --- windows_archive/archive-teslacam-clips | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows_archive/archive-teslacam-clips b/windows_archive/archive-teslacam-clips index 1df2f9c..063c7d0 100644 --- a/windows_archive/archive-teslacam-clips +++ b/windows_archive/archive-teslacam-clips @@ -74,7 +74,7 @@ function move_clips_to_archive () { for file_name in "$CAM_MOUNT"/TeslaCam/saved*; do [ -e "$file_name" ] || continue log "Moving $file_name ..." - mv -- "$file_name" "$CAM_MOUNT" >> "$LOG_FILE" 2>&1 || echo "" + mv -- "$file_name" "$ARCHIVE_MOUNT" >> "$LOG_FILE" 2>&1 || echo "" log "Moved $file_name." done log "Finished moving clips to archive." @@ -94,7 +94,7 @@ function fix_errors_on_cam_drive () { function ensure_archive_is_mounted () { log "Ensuring cam archive is mounted..." - ensure_mountpoint_is_mounted_with_retry "$CAM_MOUNT" + ensure_mountpoint_is_mounted_with_retry "$ARCHIVE_MOUNT" log "Ensured cam archive is mounted." }