Migrate from .stow-rename to --dotfiles

This commit is contained in:
Danielle McLean 2023-10-23 15:16:31 +11:00
parent e344a02c65
commit c9c512486d
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
23 changed files with 0 additions and 2 deletions

22
dot-local/bin/up Executable file
View file

@ -0,0 +1,22 @@
#!/bin/zsh
upload() {
http --check-status --ignore-stdin --form \
POST https://up.00dani.me/ \
Authorization:$UP_TOKEN \
file@$1
}
if (( $# == 0 )); then
upload =(cat)
exit $?
fi
for f; do
if [[ ! -r $f ]]; then
print "up: $f is not a readable file" >&2
exit 1
fi
upload $f || exit $?
print
done