aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
Diffstat (limited to 'alias')
-rw-r--r--alias2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias b/alias
index 904edce..b5c3490 100644
--- a/alias
+++ b/alias
@@ -419,7 +419,7 @@ image.from_data_url() {
419} 419}
420image.upload() { 420image.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}