From 0823b816fd9db2d15f72dd8593d8db409a2cab1b Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 23 Oct 2020 00:32:32 -0700 Subject: [PATCH] remove "SOURCEDIR", a generic env variable we only used to mean pwd, right after setting it --- bin/kaleidoscope-builder | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 61e266dd..75bfeec6 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -702,14 +702,11 @@ fi : "${ARDUINO_CLI_CONFIG:=${ARDUINO_DIRECTORIES_DATA}/arduino-cli.yaml}" : "${ARDUINO_BOARDS_MANAGER_KALEIDOSCOPE:=https://raw.githubusercontent.com/keyboardio/boardsmanager/master/package_keyboardio_index.json}" -# shellcheck disable=SC2155 -export SOURCEDIR="$(pwd)" - for conf_file in \ "${HOME}/.kaleidoscope-builder.conf" \ - "${SOURCEDIR}/.kaleidoscope-builder.conf" \ - "${SOURCEDIR}/kaleidoscope-builder.conf" \ + "$(pwd)/.kaleidoscope-builder.conf" \ + "$(pwd)/kaleidoscope-builder.conf" \ "${KALEIDOSCOPE_DIR}/etc/kaleidoscope-builder.conf"; do if [ -e "${conf_file}" ]; then # shellcheck disable=SC1090