update camera scripts but not usefully
This commit is contained in:
		
							parent
							
								
									c1609458b3
								
							
						
					
					
						commit
						1b780f774c
					
				| @ -1,4 +1,11 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
| export CAM_SRC="/run/media/$USER/disk/" | 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" | ||||||
|  | |||||||
| @ -2,8 +2,8 @@ | |||||||
| 
 | 
 | ||||||
| # TODO: offer to clear camera storage | # TODO: offer to clear camera storage | ||||||
| 
 | 
 | ||||||
| srcdir=$CAM_SRC | src=$CAM_SRC | ||||||
| bkpdir=$CAM_BKP | pic=$CAM_PIC | ||||||
| 
 | 
 | ||||||
| if [ "$#" -eq 2 ]; then | if [ "$#" -eq 2 ]; then | ||||||
|     srcdir=$1 |     srcdir=$1 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user