Skip to content

Commit 6e7343b

Browse files
committed
Split env installation into a separate step, r2
1 parent 38f9b25 commit 6e7343b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/run-util.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@ print_env_info() {
22
conda info
33
conda list -n triton
44
}
5-
5+
set -vx
66
while [ -v 1 ]; do
77
case "$1" in
88
--python-version)
99
python_version=$2
1010
shift 2
1111
;;
12-
install-env)
13-
install_env
14-
print_env_info
15-
exit 0
16-
;;
1712
*)
1813
script_name=$1
1914
shift
2015
;;
2116
esac
2217
done
18+
19+
if [ $(head -1 "$script_name") = install-env ]
20+
then
21+
install_env
22+
print_env_info
23+
exit 0
24+
fi

0 commit comments

Comments
 (0)