Skip to content

Commit

Permalink
fix: path issue in k8s scripts (#9890)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr authored Nov 11, 2024
1 parent 7971974 commit 32a546c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spartan/chaos-mesh/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname $(realpath -s "${BASH_SOURCE[0]}"))"
cd "$SCRIPT_DIR"

# check if chaos-mesh is already installed
Expand Down
2 changes: 1 addition & 1 deletion spartan/metrics/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -eu

SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname $(realpath -s "${BASH_SOURCE[0]}"))"
cd "$SCRIPT_DIR"

# check if metrics is already installed
Expand Down
2 changes: 1 addition & 1 deletion spartan/scripts/setup_local_k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname $(realpath -s "${BASH_SOURCE[0]}"))"

# exit if we are not on linux amd64
if [ "$(uname)" != "Linux" ] || [ "$(uname -m)" != "x86_64" ]; then
Expand Down

0 comments on commit 32a546c

Please sign in to comment.