Skip to content

Commit

Permalink
primitive: Remove unnecessary global shellcheck disable rule for SC2034
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed May 1, 2018
1 parent c6bbe55 commit c9f9a1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source Code/Shell Script(GNU Bash)(primitive).template.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
# shellcheck disable=SC2034

# <Source Description>
# <Copyright Holder Name> © <Copyright Activation Latest Year, for determining year of end of copyright protection>

Expand Down Expand Up @@ -57,9 +55,12 @@ if [ -v 'BASH_SOURCE[0]' ]; then
RUNTIME_EXECUTABLE_NAME="${RUNTIME_EXECUTABLE_FILENAME%.*}"
RUNTIME_EXECUTABLE_DIRECTORY="$(dirname "${RUNTIME_EXECUTABLE_PATH}")"
RUNTIME_COMMANDLINE_BASECOMMAND="${0}"
# We intentionally leaves these variables for script developers
# shellcheck disable=SC2034
declare -r \
RUNTIME_EXECUTABLE_PATH \
RUNTIME_EXECUTABLE_FILENAME \
RUNTIME_EXECUTABLE_NAME \
RUNTIME_EXECUTABLE_DIRECTORY \
RUNTIME_COMMANDLINE_BASECOMMAND
fi
Expand Down

0 comments on commit c9f9a1c

Please sign in to comment.