From 2b432e1f3abb30d326df563523850d9f5e3cc7ae Mon Sep 17 00:00:00 2001 From: Dan OBoyle Date: Fri, 3 Jul 2015 17:41:21 -0400 Subject: [PATCH] document SC2155 --- bin/_blackbox_common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index b120048..dfc6076 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -159,6 +159,8 @@ function prepare_keychain() { function add_filename_to_cryptlist() { # If the name is already on the list, this is a no-op. # However no matter what the datestamp is updated. + + # https://github.com/koalaman/shellcheck/wiki/SC2155 local name name=$(vcs_relative_path "$1") @@ -174,6 +176,8 @@ function add_filename_to_cryptlist() { # Removes a file from the list of encrypted files function remove_filename_from_cryptlist() { # If the name is not already on the list, this is a no-op. + + # https://github.com/koalaman/shellcheck/wiki/SC2155 local name name=$(vcs_relative_path "$1")