From 3975731d07ad4e849c08aa2c8bbf8d1fbb2f56cf Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 29 Jun 2020 09:08:04 -0500 Subject: [PATCH] cleanup --- .vscode/testlinter.sh | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index c6a54f00..e27c6ac2 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -1,12 +1,26 @@ -#!/bin/bash -#At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder -#You can also use ln -s /path /tmp/lint as an alternative -#If you do neither, this will default to running against the test automation files -tmppath=/tmp/lint -if [ ! -L $tmppath ]; then - ln -s "$PWD"/.automation/test $tmppath +#!/usr/bin/env bash + +# At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder +# You can also use ln -s /path /tmp/lint as an alternative +# If you do neither, this will default to running against the test automation files + +########### +# GLOBALS # +########### +CODE_PATH='/tmp/lint' # Path to code base + +################## +# Check the path # +################## +if [ ! -L $CODE_PATH ]; then + # Create symbolic link + ln -s "$PWD"/.automation/test $CODE_PATH fi +######################### +# Export to run locally # +######################### export RUN_LOCAL=true -# shellcheck source=lib/linter.sh -source "$PWD"/lib/linter.sh \ No newline at end of file + +# # shellcheck disable=SC1091 +source "$PWD"/lib/linter.sh