X-Git-Url: https://vcs.fsf.org/?p=pdt.git;a=blobdiff_plain;f=pdt.sh;h=21cb00fae96c60907bfe7c2bbf179a8e7669e958;hp=93ddad386658d8ede7a4aecfa0118421f0451b3d;hb=4b26c43d8a5c14d2c562a7ce62019c4245d088ef;hpb=9c8eb6e7be5cef27dec23eaf90ee4583d19d2a75 diff --git a/pdt.sh b/pdt.sh index 93ddad3..21cb00f 100644 --- a/pdt.sh +++ b/pdt.sh @@ -11,7 +11,7 @@ PATH="$HOME/.local/bin:$PATH" # Wrapper for rainbowstream to use multiple logins and tweet directly # from the command line. PROFILE_NAME can be anything you want. rbow() { - local oath + local oath f oath=$HOME/.rainbow_oauth if [[ $1 == -* ]]; then rm -f $oath @@ -47,6 +47,7 @@ diaspora() { # usage: toot [-PROFILE_NAME] [TOOT_ARGS] toot() { + local account source ~/src/toot/venv/bin/activate if [[ $1 == -* ]]; then account=${1#-} @@ -62,6 +63,7 @@ toot() { # # usage: pdt [--dbd] [-m MEDIA_FILE] [-v VIDEO_PATH] [POST] pdt() { + local video media rbow_account gs_account mastodon_account dbd video rbow_arg toot_arg dia_arg gs_arg if [[ $pdttest ]]; then rbow_account=iank gs_account=fsfes @@ -126,7 +128,7 @@ pdt() { fi rm -f $oath ln -s ${oath}-$account $oath - python3 ~/src/async-upload.py "$media" "$*" + python3 ~/src/video-tweet/async-upload.py "$media" "$*" return fi fails=()