clarifying some flip commands

This commit is contained in:
2019-02-03 09:19:02 +02:00
parent 5baf6dcbee
commit 73f8c4ef79
2 changed files with 9 additions and 4 deletions

View File

@@ -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
}