diff options
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -419,7 +419,7 @@ image.from_data_url() { | |||
419 | } | 419 | } |
420 | image.upload() { | 420 | image.upload() { |
421 | month=$(date +%Y-%m) | 421 | month=$(date +%Y-%m) |
422 | filename=$(date +"%d_%Hh%Mm%Ss").${1##*.} | 422 | filename=${2:-$(date +"%d_%Hh%Mm%Ss").${1##*.}} |
423 | scp $1 vps:~/data/s3.photos/$month/$filename | 423 | scp $1 vps:~/data/s3.photos/$month/$filename |
424 | echo https://topo.tw/photos/$month/$filename | 424 | echo https://topo.tw/photos/$month/$filename |
425 | } | 425 | } |