From 6f4b5e061def60717af7e08ec7ff1f15a48704f3 Mon Sep 17 00:00:00 2001 From: Mo Langning <133737702+molangning@users.noreply.github.com> Date: Sat, 25 Nov 2023 00:26:07 +0800 Subject: [PATCH] created wrapper script --- .bin/validators.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .bin/validators.sh diff --git a/.bin/validators.sh b/.bin/validators.sh new file mode 100755 index 00000000..bf2e3f18 --- /dev/null +++ b/.bin/validators.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# https://stackoverflow.com/questions/3822621/how-to-exit-if-a-command-failed + +set -e +set -o pipefail + +# wrapper for all the checking scripts +echo $1 +./.bin/check-file-for-starting-slash "$1" +./.bin/new-line-and-empty-line-checker.py "$1" \ No newline at end of file