From 9dd63edf4d221a6e3f6b6391e94284f392a653d9 Mon Sep 17 00:00:00 2001 From: Jaby Date: Fri, 24 Jul 2026 17:53:49 +0100 Subject: [PATCH] Grab location of script to be position independant --- Common.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common.toml b/Common.toml index 47eed09..8e706c4 100644 --- a/Common.toml +++ b/Common.toml @@ -12,7 +12,7 @@ run_task = [ workspace = false script = [''' #!/usr/bin/env bash - ./cleanup-scripts/add_eof_newline.sh + ${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}/add_eof_newline.sh '''] # Runs the `remove_trailing_whitespaces` script @@ -20,5 +20,5 @@ script = [''' workspace = false script = [''' #!/usr/bin/env bash - cleanup-scripts/remove_trailing_whitespaces.sh + ${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}/remove_trailing_whitespaces.sh '''] \ No newline at end of file