diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 00:58:42 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 00:58:42 +0000 |
| commit | 0c1d60a2ad69e79e83d36ed8a001743fde3d6666 (patch) | |
| tree | 4498382545dbc858c1617fcced9dc86e3340ba8e /grasp-audit | |
| parent | d3e703d7f522c30ac6634716654c24cb7415fabd (diff) | |
fix: sh script to work from main directory
Diffstat (limited to 'grasp-audit')
| -rwxr-xr-x | grasp-audit/test-ngit-relay.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/grasp-audit/test-ngit-relay.sh b/grasp-audit/test-ngit-relay.sh index ff6ac1a..2f43042 100755 --- a/grasp-audit/test-ngit-relay.sh +++ b/grasp-audit/test-ngit-relay.sh | |||
| @@ -1,6 +1,11 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | set -e | 2 | set -e |
| 3 | 3 | ||
| 4 | # Change to script's directory to ensure cargo finds grasp-audit/Cargo.toml | ||
| 5 | # This allows the script to be run from any directory | ||
| 6 | SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| 7 | cd "$SCRIPT_DIR" | ||
| 8 | |||
| 4 | # ============================================================================= | 9 | # ============================================================================= |
| 5 | # Script: test-ngit-relay.sh | 10 | # Script: test-ngit-relay.sh |
| 6 | # Purpose: Test ngit-relay against GRASP specifications | 11 | # Purpose: Test ngit-relay against GRASP specifications |