From 9a752a45bafe606c053a55ddbff69094757fbaa1 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 18:13:46 -0600 Subject: [PATCH] Make shellcheck happier --- default.sh | 4 ++++ would-reformat.sh | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 default.sh diff --git a/default.sh b/default.sh new file mode 100644 index 0000000..8bb2d30 --- /dev/null +++ b/default.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "ignoring" +exit 0 diff --git a/would-reformat.sh b/would-reformat.sh index 457729f..54f4c02 100755 --- a/would-reformat.sh +++ b/would-reformat.sh @@ -11,8 +11,10 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$DIR/_reformat-common.bash" file="$1" -export PROJECT_ROOT=$(project_root "$file") -export WF_ROOT=$(wf_root) +PROJECT_ROOT=$(project_root "$file") +export PROJECT_ROOT="$PROJECT_ROOT" +WF_ROOT=$(wf_root) +export WF_ROOT="$WF_ROOT" ## fixme use realpath or something on "$file"