small style fixes

pull/10/head
sobolevn 8 years ago
parent 2b48137287
commit d0f6a7c3c1

@ -16,7 +16,8 @@ This project is still under development. Current objectives:
- plugin for `zsh`
- extra tests
- precompiled distributions for `brew` and other package managers
- styleguide for bash (?)
- create CONTRIBUTING.md with custom styleguide and development-hooks: manual auto-build
- refactor code due to styleguide
- сygwin support (?)

@ -41,7 +41,7 @@ function remove {
rm -f "${SECRETS_DIR_PATHS_MAPPING}.bak"
if [[ "$clean" == 1 ]]; then
local encrypted_filename=`_get_encrypted_filename "$item"`
local encrypted_filename=$(_get_encrypted_filename "$item")
rm -f "$encrypted_filename"
fi

@ -10,7 +10,7 @@ function usage {
local commands=""
local separator="|"
for com in `compgen -A function`
for com in $(compgen -A function)
do
if [[ ! $com == _* ]]; then
commands+="$com$separator"

@ -28,7 +28,7 @@ function _init_script {
# for f in ${0%/*}/src/*/*; do [[ -f "$f" ]] && . "$f"; done
# routing the input command:
if [[ `_function_exists $1` == 0 ]] && [[ ! $1 == _* ]]; then
if [[ $(_function_exists "$1") == 0 ]] && [[ ! $1 == _* ]]; then
$1 "${@:2}"
else
usage "command $1 not found."

Loading…
Cancel
Save