clarifying some flip commands
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user