Skip to content

Commit c9f9a1c

Browse files
committed
primitive: Remove unnecessary global shellcheck disable rule for SC2034
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
1 parent c6bbe55 commit c9f9a1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source Code/Shell Script(GNU Bash)(primitive).template.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env bash
2-
# shellcheck disable=SC2034
3-
42
# <Source Description>
53
# <Copyright Holder Name> © <Copyright Activation Latest Year, for determining year of end of copyright protection>
64

@@ -57,9 +55,12 @@ if [ -v 'BASH_SOURCE[0]' ]; then
5755
RUNTIME_EXECUTABLE_NAME="${RUNTIME_EXECUTABLE_FILENAME%.*}"
5856
RUNTIME_EXECUTABLE_DIRECTORY="$(dirname "${RUNTIME_EXECUTABLE_PATH}")"
5957
RUNTIME_COMMANDLINE_BASECOMMAND="${0}"
58+
# We intentionally leaves these variables for script developers
59+
# shellcheck disable=SC2034
6060
declare -r \
6161
RUNTIME_EXECUTABLE_PATH \
6262
RUNTIME_EXECUTABLE_FILENAME \
63+
RUNTIME_EXECUTABLE_NAME \
6364
RUNTIME_EXECUTABLE_DIRECTORY \
6465
RUNTIME_COMMANDLINE_BASECOMMAND
6566
fi

0 commit comments

Comments
 (0)