Removed the WIP update mechanism, it never worked out
This commit is contained in:
parent
1827573d77
commit
1451bf6941
2 changed files with 7 additions and 8 deletions
14
matrix-send
14
matrix-send
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# matrix-send: a super-simple command-line matrix client
|
# matrix-send: a super-simple command-line matrix client
|
||||||
|
|
||||||
|
Version="dev_rolling"
|
||||||
|
|
||||||
[ -e /usr/bin/curl ] || printf "\033[31;1merror:\033[0m curl not found\n"
|
[ -e /usr/bin/curl ] || printf "\033[31;1merror:\033[0m curl not found\n"
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
@ -12,9 +14,7 @@ error () {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
conf_error () {
|
conf_error () { printf "\033[31;1mconfiguration error:\033[0m $1\n" exit 2
|
||||||
printf "\033[31;1mconfiguration error:\033[0m $1\n"
|
|
||||||
exit 2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vargrep () {
|
vargrep () {
|
||||||
|
@ -62,9 +62,9 @@ NoCache () {
|
||||||
nocache="true"
|
nocache="true"
|
||||||
}
|
}
|
||||||
|
|
||||||
###################################
|
############################
|
||||||
#### Matrix-specific Functions ####
|
#### Specific Functions ####
|
||||||
###################################
|
############################
|
||||||
|
|
||||||
GetAccessToken () {
|
GetAccessToken () {
|
||||||
[ -z "$manualAuth" ] && printf "Getting access token...\n"
|
[ -z "$manualAuth" ] && printf "Getting access token...\n"
|
||||||
|
@ -118,9 +118,9 @@ fi
|
||||||
##############
|
##############
|
||||||
|
|
||||||
[ -z "$1" ] && error "Message not specified"
|
[ -z "$1" ] && error "Message not specified"
|
||||||
|
[ "$1" = "-c" ] && ClearCache
|
||||||
|
|
||||||
# Get token and cache it (unless NoCache is set)
|
# Get token and cache it (unless NoCache is set)
|
||||||
[ "$1" = "-c" ] && ClearCache
|
|
||||||
[ -e "$cacheloc/matrix-send/access-token" ] && token=$(cat $cacheloc/matrix-send/access-token)
|
[ -e "$cacheloc/matrix-send/access-token" ] && token=$(cat $cacheloc/matrix-send/access-token)
|
||||||
[ -e "$cacheloc/matrix-send/access-token" ] || GetAccessToken
|
[ -e "$cacheloc/matrix-send/access-token" ] || GetAccessToken
|
||||||
CacheAccessToken
|
CacheAccessToken
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
LatestVersion="dev_rolling"
|
|
Loading…
Add table
Add a link
Reference in a new issue