update camera scripts but not usefully

This commit is contained in:
ktyl 2022-06-01 19:09:19 +01:00
parent c1609458b3
commit 1b780f774c
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,11 @@
#!/usr/bin/env bash
export CAM_SRC="/run/media/$USER/disk/"
export CAM_BKP="/run/media/$USER/7ACE1422CE13D4EB/cam/"
# TODO: this is actually garbage lol, when importing pictures we should sort them
# by their metadata, not by todays date and CERTAINLY not in an env variable which could
# be in a shell started days ago
# a dated directory to store
today="`date +%Y`/`date +%m`/`date +%d`"
export CAM_TODAY="$HOME/pic/cam/$today"

View File

@ -2,8 +2,8 @@
# TODO: offer to clear camera storage
srcdir=$CAM_SRC
bkpdir=$CAM_BKP
src=$CAM_SRC
pic=$CAM_PIC
if [ "$#" -eq 2 ]; then
srcdir=$1