From 73f8c4ef79c01b0aed5643cd39b8184b9cafe712 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Sun, 3 Feb 2019 09:19:02 +0200 Subject: [PATCH] clarifying some flip commands --- code/app.py | 2 +- code/templates/flip | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/code/app.py b/code/app.py index dbcb8f8..5c590b0 100644 --- a/code/app.py +++ b/code/app.py @@ -13,7 +13,7 @@ from revprox import ReverseProxied from utils import * -__FLEES_VERSION__ = "20181124.0" +__FLEES_VERSION__ = "20190203.0" app = Flask(__name__) app.config.from_object(__name__) config_values = read_config(app) diff --git a/code/templates/flip b/code/templates/flip index dd21ffb..75347d9 100755 --- a/code/templates/flip +++ b/code/templates/flip @@ -27,10 +27,10 @@ _help() { File or folder to read from. If omitted: stdin Shorthand: - echo my data | $SELF 1 # writes data with name: 1 - $SELF 1 | cat - # prints the contents of file: 1 + echo my data | $SELF file.ext # writes data with name: file.ext + $SELF file.ext | cat - # prints the contents of file: file.ext $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: set: FLEES_ROOTURL, FLEES_SHARE, FLEES_TOKEN @@ -49,9 +49,14 @@ _update_client() { [[ -n "$FLEES_TOKEN" ]] && [[ -n "$FLEES_SHARE" ]] && { 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" err=$? chmod +x "$0" + echo "Downloaded version:" + "$0" --help | head -n 1 exit $err }