get url to copy of self
This commit is contained in:
@@ -15,6 +15,7 @@ _help() {
|
||||
url Get the direct share url
|
||||
upload Get URL for uploads [no arguments]
|
||||
update Update flip client [no arguments]
|
||||
self Get URL to install this client to another computer
|
||||
|
||||
Name: Any string for the clipboard name. default: 0
|
||||
|
||||
@@ -128,7 +129,14 @@ _url() { # name
|
||||
}
|
||||
_upload_url() {
|
||||
echo "This information is a security risk, watch where it's shared"
|
||||
echo "curl -s $FLEES_ROOTURL/script/upload/$FLEES_SHARE/$FLEES_TOKEN | bash /dev/stdin file_to_upload.ext"
|
||||
echo "# curl -s $FLEES_ROOTURL/script/upload/$FLEES_SHARE/$FLEES_TOKEN | bash /dev/stdin file_to_upload.ext"
|
||||
exit
|
||||
}
|
||||
_self_url() {
|
||||
SELF=$( basename "$0" )
|
||||
echo "This information is a security risk, watch where it's shared!"
|
||||
echo ""
|
||||
echo "# curl $FLEES_ROOTURL/script/flip/$FLEES_SHARE/$FLEES_TOKEN -o $SELF && chmod +x $SELF"
|
||||
exit
|
||||
}
|
||||
_msg() {
|
||||
@@ -177,6 +185,7 @@ CMD=list
|
||||
[[ "$1" = "url" ]] && { CMD=url; ARG1=$CMD; }
|
||||
[[ "$1" = "update" ]] && { _update_client; }
|
||||
[[ "$1" = "upload" ]] && { _upload_url; }
|
||||
[[ "$1" = "self" ]] && { _self_url; }
|
||||
[[ "$1" = "h" || "$1" = "help" ]] && _help
|
||||
|
||||
[[ "$CMD" = list ]] && {
|
||||
|
||||
Reference in New Issue
Block a user