diff --git a/.scripts/cam/env.sh b/.scripts/cam/env.sh index 297629e..ec8dffe 100644 --- a/.scripts/cam/env.sh +++ b/.scripts/cam/env.sh @@ -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" diff --git a/.scripts/cam/importcam b/.scripts/cam/importcam index a4a836e..167b55c 100755 --- a/.scripts/cam/importcam +++ b/.scripts/cam/importcam @@ -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