summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/uwuload6
-rwxr-xr-x.local/bin/uwupass2
2 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/uwuload b/.local/bin/uwuload
index effdb39..63a1d04 100755
--- a/.local/bin/uwuload
+++ b/.local/bin/uwuload
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -euox pipefail
-file=$1
-filename="$(basename $1)"
+file="$*"
+filename=$(basename "$file")
rsync -r --progress --stats "$file" "ewout@ewy.one:/srv/uwu/$filename"
url="https://uwu.ewy.one/$filename"
-echo "$url" | wl-copy
+echo -n "$url" | wl-copy
message="Uploaded $filename to uwu; copied result URL to clipboard."
notify-send -a uwuload -i /usr/share/icons/Papirus-Dark/128x128/devices/network-server.svg "$message"
diff --git a/.local/bin/uwupass b/.local/bin/uwupass
index 348214a..c6ce9e1 100755
--- a/.local/bin/uwupass
+++ b/.local/bin/uwupass
@@ -60,7 +60,7 @@ target=$(echo "$pass" | eval "$(dbQuery show -s)" -a Password \"$entry\")
# Write the password
-echo "$target" | wl-copy
+echo -n "$target" | wl-copy
message "Copied password for $entry to selection buffer."
# Copy TOTP ~~to clipboard~~