mirror of
https://gitlab.com/LazyLibrarian/LazyLibrarian.git
synced 2026-02-06 10:47:15 +00:00
indent tidying
This commit is contained in:
parent
46d227b501
commit
dc83e0d310
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
if [ "$#" -ne 1 ]; then
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "USAGE: link = rclonelink.sh /path/to/filename"
|
||||
else
|
||||
A=$1
|
||||
R="Dropbox"
|
||||
F=`echo $A | rev | cut -d '/' -f 1 | rev`
|
||||
rclone copy "$A" $R:
|
||||
X=`rclone link --expire 14d $R:"$F"`
|
||||
echo "$X The link is valid for 14 days"
|
||||
F=`echo $A | rev | cut -d '/' -f 1 | rev`
|
||||
rclone copy "$A" $R:
|
||||
X=`rclone link --expire 14d $R:"$F"`
|
||||
echo "$X The link is valid for 14 days"
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user