From 37a960d000d9d6e0dd9cf6ee3aeff296ea843870 Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis Date: Mon, 12 Mar 2018 07:54:31 +0200 Subject: [PATCH] Fix shellcheck warnings. --- goto.sh | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/goto.sh b/goto.sh index 2f02f73..93c9e90 100644 --- a/goto.sh +++ b/goto.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env sh +# shellcheck disable=SC2039 # MIT License # # Copyright (c) 2018 Lazarus Lazaridis @@ -22,7 +24,7 @@ # Changes to the given alias directory # or executes a command based on the arguments. -function goto() +goto() { local target _goto_resolve_db @@ -61,12 +63,12 @@ function goto() return $? } -function _goto_resolve_db() +_goto_resolve_db() { GOTO_DB="$HOME/.goto" } -function _goto_usage() +_goto_usage() { cat <<\USAGE usage: goto [