aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-10-27 22:08:28 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-10-27 22:08:28 +0800
commit54b82e204ba9f25b24fa866808626c4700c5d4c9 (patch)
tree964dd9ea7b029848175418fc7498b5027b782336 /alias
parentd622972078762903a0698f07cfb7853174ddbd4a (diff)
Update
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}