clarifying some flip commands
This commit is contained in:
@@ -13,7 +13,7 @@ from revprox import ReverseProxied
|
|||||||
from utils import *
|
from utils import *
|
||||||
|
|
||||||
|
|
||||||
__FLEES_VERSION__ = "20181124.0"
|
__FLEES_VERSION__ = "20190203.0"
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object(__name__)
|
app.config.from_object(__name__)
|
||||||
config_values = read_config(app)
|
config_values = read_config(app)
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ _help() {
|
|||||||
File or folder to read from. If omitted: stdin
|
File or folder to read from. If omitted: stdin
|
||||||
|
|
||||||
Shorthand:
|
Shorthand:
|
||||||
echo my data | $SELF 1 # writes data with name: 1
|
echo my data | $SELF file.ext # writes data with name: file.ext
|
||||||
$SELF 1 | cat - # prints the contents of file: 1
|
$SELF file.ext | cat - # prints the contents of file: file.ext
|
||||||
$SELF w file.ext # sends file keeping its name
|
$SELF w file.ext # sends file keeping its name
|
||||||
$SELF r file.ext # download file with same name
|
$SELF r file.ext # download and save file with the same name
|
||||||
|
|
||||||
Config:
|
Config:
|
||||||
set: FLEES_ROOTURL, FLEES_SHARE, FLEES_TOKEN
|
set: FLEES_ROOTURL, FLEES_SHARE, FLEES_TOKEN
|
||||||
@@ -49,9 +49,14 @@ _update_client() {
|
|||||||
[[ -n "$FLEES_TOKEN" ]] && [[ -n "$FLEES_SHARE" ]] && {
|
[[ -n "$FLEES_TOKEN" ]] && [[ -n "$FLEES_SHARE" ]] && {
|
||||||
sharetoken="/$FLEES_SHARE/$FLEES_TOKEN"
|
sharetoken="/$FLEES_SHARE/$FLEES_TOKEN"
|
||||||
}
|
}
|
||||||
|
echo "Current version:"
|
||||||
|
"$0" --help | head -n 1
|
||||||
|
echo "Updating from $FLEES_ROOTURL"
|
||||||
curl -fLo "$0" "$FLEES_ROOTURL/script/flip$sharetoken"
|
curl -fLo "$0" "$FLEES_ROOTURL/script/flip$sharetoken"
|
||||||
err=$?
|
err=$?
|
||||||
chmod +x "$0"
|
chmod +x "$0"
|
||||||
|
echo "Downloaded version:"
|
||||||
|
"$0" --help | head -n 1
|
||||||
exit $err
|
exit $err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user