💾 Archived View for mkl-wlod.srht.site › repo › tree › scripts › .local › bin › 0x0.txt captured on 2024-02-05 at 09:47:06.
⬅️ Previous capture (2022-06-04)
-=-=-=-=-=-=-
#!/bin/sh # Original repository # https://git.lapacz-kornel.dev/dotfiles filename=$1 if [ -z "$filename" ]; then echo "usage: 0x0 filename" exit 1 fi if [ ! -f "$filename" ]; then echo "file $filename doesn't exist" exit 1 fi url=$(curl -F"file=@$filename" https://0x0.st) [ -z "$url" ] && exit 1 echo "$url" echo "$url" | xclip -selection clipboard