From a47feb421a8d6b343a906ecd94fc02dfb5675c6c Mon Sep 17 00:00:00 2001 From: Robert Iannucci Date: Mon, 25 Oct 2021 13:48:23 -0700 Subject: [PATCH] Refine third-party lib checking scripts. --- check_third_party.sh | 6 ++++-- web/client/resources/js/lib/update.sh | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/check_third_party.sh b/check_third_party.sh index 1809c695..6a74657f 100755 --- a/check_third_party.sh +++ b/check_third_party.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash -./web/client/resources/js/lib/update.sh +cd "$(dirname $(realpath $0))" -if ! (git diff-files --quiet); then +sh ./web/client/resources/js/lib/update.sh + +if ! (git diff-files --quiet web/client/resources/js/lib); then echo "Third party libraries don't match their .url files." echo "Re-run ./web/client/resources/js/lib/update.sh" exit 1 diff --git a/web/client/resources/js/lib/update.sh b/web/client/resources/js/lib/update.sh index ff1f0b00..16974c9a 100755 --- a/web/client/resources/js/lib/update.sh +++ b/web/client/resources/js/lib/update.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +cd "$(dirname $(realpath $0))" + config_file=() for url in *.url; do