haha yeah actually vars is a good idea
This commit is contained in:
parent
ebd79fc601
commit
bcd456e55b
4
PKGBUILD
4
PKGBUILD
|
@ -2,8 +2,8 @@
|
||||||
#Well, it seems to work now.
|
#Well, it seems to work now.
|
||||||
|
|
||||||
pkgname=clemmy
|
pkgname=clemmy
|
||||||
pkgver=0.1.1
|
pkgver=0.1.2
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc='A pure bash client for lemmy, with multiaccount support.'
|
pkgdesc='A pure bash client for lemmy, with multiaccount support.'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='http://precious.harpy.faith/Zergling_man/clemmy'
|
url='http://precious.harpy.faith/Zergling_man/clemmy'
|
||||||
|
|
|
@ -12,7 +12,7 @@ while getopts "a:hi:v" o;do case "${o}" in
|
||||||
a) INSTANCE=${insts[$OPTARG]}; TOKE=${tokes[$OPTARG]};;
|
a) INSTANCE=${insts[$OPTARG]}; TOKE=${tokes[$OPTARG]};;
|
||||||
i) INSTANCE=$OPTARG;;
|
i) INSTANCE=$OPTARG;;
|
||||||
h) echo $actions; exit;;
|
h) echo $actions; exit;;
|
||||||
v) echo 0.1.1; exit;;
|
v) echo 0.1.2; exit;;
|
||||||
esac done
|
esac done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ register()
|
||||||
namedget reg_email "Email address $em"
|
namedget reg_email "Email address $em"
|
||||||
if [ $app == true ]; then namedget reg_appa "Application question: $appq"; fi
|
if [ $app == true ]; then namedget reg_appa "Application question: $appq"; fi
|
||||||
result="$(post "user/register" "{\"username\":\"$reg_username\",\"password\":\"$reg_pw\",\"password_verify\":\"$reg_pw2\",\"email\":\"$reg_email\",\"answer\":\"$reg_appa\"}")"
|
result="$(post "user/register" "{\"username\":\"$reg_username\",\"password\":\"$reg_pw\",\"password_verify\":\"$reg_pw2\",\"email\":\"$reg_email\",\"answer\":\"$reg_appa\"}")"
|
||||||
if [ ! $(jq .error <<< "result") == "captcha_incorrect" ]; then
|
if [ ! $(jq .error <<< "$result") == "captcha_incorrect" ]; then
|
||||||
jq <<< "result"; exit;
|
jq <<< "$result"; exit;
|
||||||
fi
|
fi
|
||||||
a="$(get "user/get_captcha" ".ok")"
|
a="$(get "user/get_captcha" ".ok")"
|
||||||
reg_uuid=$(jq -r '.uuid' <<< "$a")
|
reg_uuid=$(jq -r '.uuid' <<< "$a")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
actions="notifs notifs2 comments freepost shitpost follow unfollow home deref whoami login"
|
actions="notifs notifs2 comments freepost shitpost follow unfollow home deref whoami login pendcount pending"
|
||||||
#Endpoints in other files mostly.
|
#Endpoints in other files mostly.
|
||||||
imps=$(dirname $(realpath $0))
|
imps=$(dirname $(realpath $0))
|
||||||
|
|
||||||
|
@ -6,5 +6,7 @@ source $imps/commands/accounts.sh
|
||||||
source $imps/commands/communities.sh
|
source $imps/commands/communities.sh
|
||||||
source $imps/commands/lurking.sh
|
source $imps/commands/lurking.sh
|
||||||
source $imps/commands/posts.sh
|
source $imps/commands/posts.sh
|
||||||
|
source $imps/commands/admin.sh
|
||||||
|
|
||||||
#Misc
|
#Misc
|
||||||
deref(){ getauth "resolve_object" "" "q=$*"; }
|
deref(){ getauth "resolve_object" "" "q=$*"; }
|
Loading…
Reference in New Issue
Block a user