tiny beautification

This commit is contained in:
2018-08-20 22:15:14 +03:00
parent 8b4c01ed6f
commit 9da02ed65b

View File

@@ -3,7 +3,7 @@
set -e set -e
_help() { _help() {
SELF=$( basename "$0" ) SELF=$( basename "$0" )
echo "Fleese Clipboard v. {{ version }} echo "Flees Clipboard v.{{ version }}
Usage: $SELF [command] [name] [filename] Usage: $SELF [command] [name] [filename]
@@ -148,7 +148,6 @@ CMD=list
[[ "$1" = "l" || "$1" = "list" ]] && { CMD=list; ARG1=$CMD; } [[ "$1" = "l" || "$1" = "list" ]] && { CMD=list; ARG1=$CMD; }
[[ "$1" = "update" ]] && { _update_client; } [[ "$1" = "update" ]] && { _update_client; }
[[ "$1" = "h" || "$1" = "help" ]] && _help [[ "$1" = "h" || "$1" = "help" ]] && _help
[[ -n "$1" ]] && [[ -e "$STORAGE"/"$1" ]] && CMD=read
# if stdout redirected, default to read # if stdout redirected, default to read
[ -t 1 ] || CMD=read [ -t 1 ] || CMD=read
# if stdin comes from stream, default to write # if stdin comes from stream, default to write