Skip to content

Commit 542f2c0

Browse files
committed
[update] Using FILE_PATH in env_setup.sh
1 parent 68f1a76 commit 542f2c0

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

data/env_setup.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ License: MIT
1515
===============================================================================
1616
EOF
1717

18-
echo "[ENV-SETUP] Sourcing \${ENV_SETUP_FILE}: ${ENV_SETUP_FILE}"
18+
FILE_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
19+
FILE_NAME="$( basename -- "${BASH_SOURCE[0]}" )"
20+
FILE_PATH="$FILE_DIR/$FILE_NAME"
21+
22+
echo "[ENV-SETUP] Sourcing ${FILE_PATH}"
23+
echo " \${ENV_SETUP_FILE}: ${ENV_SETUP_FILE:-<not set>}"
1924

2025
# @brief Add `$1` into environment variable `$2` if it is not already there.
2126
# @example > env_load PATH /usr/local/bin

scripts/image-configs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
IMAGE_VERSION=2.4.5
1+
IMAGE_VERSION=2.4.6
22
CUDA_VERSION=12.8.0
33
UBUNTU_VERSION=24.04
44
LLVM_VERSION=20

scripts/run.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
2-
32
set -e
43

5-
64
IMAGE_NAME=""
75
CONTAINER_NAME="tmp"
86
TMP="false"
@@ -19,9 +17,9 @@ function print_help() {
1917

2018
while [[ $# -gt 0 ]]; do
2119
case $1 in
22-
-I|--image-name)
20+
-i|--image-name)
2321
IMAGE_NAME="$2"; shift ;;
24-
-C|--container-name)
22+
-c|--container-name)
2523
CONTAINER_NAME="$2"; shift ;;
2624
--tmp)
2725
TMP="true" ;;

0 commit comments

Comments
 (0)