Add share commandline.
This commit is contained in:
parent
8bc4edfc75
commit
b9d8ef023d
1 changed files with 14 additions and 0 deletions
14
.local/bin/share
Executable file
14
.local/bin/share
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
password=$(cat .config/copyparty/password 2>/dev/null || echo '')
|
||||
if [ -z "$password" ]; then
|
||||
echo -n 'Password: '
|
||||
read -s password
|
||||
echo
|
||||
fi
|
||||
|
||||
u2c -a "$password" https://files.kaholaz.net/pub "$1" >/dev/null
|
||||
filename="${1##*/}"
|
||||
echo "https://files.kaholaz.net/pub/$filename"
|
Loading…
Add table
Add a link
Reference in a new issue