Skip to content

Commit

Permalink
Disable harmless shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tesujimath committed Oct 27, 2024
1 parent 1e189ad commit 844fc2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bash-env-json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ function eval_or_source() {

_error_file=$(mktemp -u)
touch "$_error_file"
# shellcheck disable=SC2094
exec 3<"$_error_file" 4>"$_error_file"
rm -f "$_error_file"

Expand Down Expand Up @@ -170,6 +171,7 @@ function invoke_safely() {

_error_file=$(mktemp -u)
touch "$_error_file"
# shellcheck disable=SC2094
exec 3<"$_error_file" 4>"$_error_file"
rm -f "$_error_file"

Expand Down Expand Up @@ -233,6 +235,7 @@ function main() {
# accumulate result in a file until we know we are error-free
_result_file=$(mktemp -u)
touch "$_result_file"
# shellcheck disable=SC2094
exec 5<"$_result_file" 6>"$_result_file"
rm -f "$_result_file"

Expand Down

0 comments on commit 844fc2f

Please sign in to comment.